Function: writeLabl()
ts
function writeLabl(cursor, box): void;Defined in: writers/writeLabl.ts:21
Write the labl box (LabelBox).
Parameters
cursor
The write cursor
box
The LabelBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.
Example
ts
const box: LabelBox = {
type: 'labl',
version: 0,
flags: 0,
labelId: 1,
language: 'en',
label: 'English',
}
const writer = writeIsoBox(box, { writers: { labl: writeLabl } })