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...")
 
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.
  

Revision as of 15:10, 19 June 2020

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 );
}