Function: writePrsl()
ts
function writePrsl(cursor, box): void;Defined in: writers/writePrsl.ts:27
Write the prsl box (PreselectionGroupBox).
The writer writes preselectionTag when flag 0x1000 is set and interleavingTag when flag 0x4000 is set. The writer writes the child boxes with the writers of the cursor.
Parameters
cursor
The write cursor
box
PreselectionGroupBox<IsoInt64>
The PreselectionGroupBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.
Example
ts
const box: PreselectionGroupBox = {
type: 'prsl',
version: 0,
flags: 0x4000,
groupId: 1,
entityId: [2],
interleavingTag: '',
boxes: [],
}
const writer = writeIsoBox(box, { writers: { prsl: writePrsl } })