Difference between revisions of "Truxton media set size"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
Sets the size of the original media, in bytes, before processing. | Sets the size of the original media, in bytes, before processing. | ||
| − | This corresponds to the <code>Size</code> column of the <code>Media</code> table. | + | This corresponds to the <code>[Size]</code> column of the <code>[Media]</code> table. |
=Syntax= | =Syntax= | ||
Revision as of 12:42, 22 February 2021
Sets the size of the original media, in bytes, before processing.
This corresponds to the [Size] column of the [Media] table.
Syntax
void truxton_media_set_size( uint64_t media_handle, uint64_t byte_count );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
byte_count
The number of bytes in the original media.
Sample
void set_GB( uint64_t media_handle, double gigabytes )
{
uint64_t byte_count = gigabytes * 1073741824;
truxton_media_set_size( media_handle, byte_count );
}