Difference between revisions of "Truxton message set depot offset"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Tells sets the offset into the depot where this file's contents begin. =Syntax= <syntaxhighlight lang="C"> void truxton_message_set_depot_offset( uint64_t message_handle, uin...")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
=Syntax=
 
=Syntax=
<syntaxhighlight lang="C">
+
<source lang="C">
 
void truxton_message_set_depot_offset( uint64_t message_handle, uint64_t offset );
 
void truxton_message_set_depot_offset( uint64_t message_handle, uint64_t offset );
</syntaxhighlight>
+
</source>
  
 
=Parameters=
 
=Parameters=
Line 10: Line 10:
 
The handle to a message created by the [[truxton_message_create]] call.
 
The handle to a message created by the [[truxton_message_create]] call.
  
==<code>route_id</code>==
+
==<code>offset</code>==
 
The offset into the depot where this file's contents begin.
 
The offset into the depot where this file's contents begin.
  
 
=Sample=
 
=Sample=
<syntaxhighlight lang="C" highlight="5">
+
<source lang="C" highlight="5">
 
void copy_offset(uint64_t message, uint64_t file )
 
void copy_offset(uint64_t message, uint64_t file )
 
{
 
{
Line 21: Line 21:
 
   truxton_message_set_depot_offset( message, value );
 
   truxton_message_set_depot_offset( message, value );
 
}
 
}
</syntaxhighlight>
+
</source>

Latest revision as of 12:34, 9 February 2021

Tells sets the offset into the depot where this file's contents begin.

Syntax

void truxton_message_set_depot_offset( uint64_t message_handle, uint64_t offset );

Parameters

message_handle

The handle to a message created by the truxton_message_create call.

offset

The offset into the depot where this file's contents begin.

Sample

void copy_offset(uint64_t message, uint64_t file )
{
   uint64_t value = truxton_file_get_depot_offset( file );

   truxton_message_set_depot_offset( message, value );
}