Truxton message set depot offset

From truxwiki.com
Revision as of 12:34, 9 February 2021 by Sam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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