Truxton message set depot length

From truxwiki.com
Revision as of 15:10, 19 June 2020 by Sam (talk | contribs) (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_length( uint64_t message_handle, uin...")
(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_length( uint64_t message_handle, uint64_t length );

Parameters

message_handle

The handle to a message created by the truxton_message_create call.

length

The number of bytes in the depot taken by this file's contents.

Sample

void copy_length(uint64_t message, uint64_t file )
{
   uint64_t value = truxton_file_get_depot_length( file );

   truxton_message_set_depot_length( message, value );
}