Truxton message set depot length
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 );
}