Function: writeCo64()
ts
function writeCo64(cursor, box): void;Defined in: writers/writeCo64.ts:27
Write the co64 box (ChunkLargeOffsetBox).
ISO/IEC 14496-12:2015 - 8.7.5
Each 64-bit integer field of the box is a number or a bigint. The writer throws a RangeError for a bigint that does not fit the field.
Parameters
cursor
The write cursor
box
The ChunkLargeOffsetBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.
Example
ts
const bytes = writeIsoBox(
{ type: 'co64', version: 0, flags: 0, chunkOffset: [64, 2 ** 33] },
{ writers: { co64: writeCo64 } },
)