Difference between revisions of "Truxton message get depot length"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "This tells you how many bytes in the depot file this file's contents consume. This corresponds to the <code>Length</code> column of the <code>Content</code> table....")
 
Line 1: Line 1:
 
This tells you how many bytes in the [[Depot | depot]] file this file's contents consume.
 
This tells you how many bytes in the [[Depot | depot]] file this file's contents consume.
This corresponds to the <code>Length</code> column of the <code>Content</code> table.
+
This corresponds to the <code>[Length]</code> column of the <code>[Content]</code> table.
  
 
=Syntax=
 
=Syntax=

Revision as of 14:49, 3 November 2020

This tells you how many bytes in the depot file this file's contents consume. This corresponds to the [Length] column of the [Content] table.

Syntax

uint32_t truxton_message_get_depot_length( uint64_t message_handle );

Parameters

message_handle

The handle to a message created by the truxton_message_create call.

Return value

The number of bytes in the depot that you can read for this file's contents.

Sample

void dump_length(uint64_t message)
{
   uint64_t value = truxton_message_get_depot_length( message );

   printf( "Size is %" PRIu64 "\n", value );
}