Function: writeEmsg()
ts
function writeEmsg(cursor, box): void;Defined in: writers/writeEmsg.ts:28
Write the emsg box (EventMessageBox).
ISO/IEC 23009-1:2022 - 5.10.3.3
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.
For a version other than 0 or 1, the writer writes the full box fields and messageData only.
Parameters
cursor
The write cursor
box
The EventMessageBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.