Difference between revisions of "Truxton message get depot offset"
Jump to navigation
Jump to search
(Created page with "This tells you where in the depot file the file contents begin. This corresponds to the <code>Offset</code> column of the <code>Content</code> table. =Syntax= <syntaxhighligh...") |
|||
| Line 1: | Line 1: | ||
| − | This tells you where in the depot file the file contents begin. | + | This tells you where in the [[Depot | depot]] file the file contents begin. |
This corresponds to the <code>Offset</code> column of the <code>Content</code> table. | This corresponds to the <code>Offset</code> column of the <code>Content</code> table. | ||
| Line 12: | Line 12: | ||
=Return value= | =Return value= | ||
| − | The offset into the depot file where the file's contents begin. | + | The offset into the [[Depot | depot]] file where the file's contents begin. |
=Sample= | =Sample= | ||
Revision as of 06:20, 13 June 2020
This tells you where in the depot file the file contents begin.
This corresponds to the Offset column of the Content table.
Syntax
uint32_t truxton_message_get_depot_offset( uint64_t message_handle );
Parameters
message_handle
The handle to a message created by the truxton_message_create call.
Return value
The offset into the depot file where the file's contents begin.
Sample
void dump_offset(uint64_t message)
{
uint64_t value = truxton_message_get_depot_offset( message );
printf( "Offset is %" PRIu64 "\n", value );
}