Truxton media set calculated size
Jump to navigation
Jump to search
Updates the [Size] column of the [Media] table with the sum of the file sizes of normal origin.
This API is useful when you are using a script to create media instead of loading it.
Syntax
int truxton_media_set_calculated_size( uint64_t media_handle );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
Return value
A non-zero value on success, zero on failure.
Sample
void set_size( uint64_t media_handle )
{
truxton_media_set_calculated_size( media_handle );
}