Type Alias: IsoBoxWriteCursor
type IsoBoxWriteCursor = object;Defined in: IsoBoxWriteCursor.ts:14
A position in a buffer that grows, for the write field functions and the box writers.
A field function writes at pos and moves pos past the field. The written bytes are cursor.bytes.subarray(0, cursor.pos).
When a field does not fit, the cursor doubles its buffer. The growth replaces view and bytes. Write through the field functions. A variable that keeps view or bytes points to the old buffer after a growth.
Properties
bytes
readonly bytes: Uint8Array<ArrayBuffer>;Defined in: IsoBoxWriteCursor.ts:23
The bytes of the complete buffer, with the unused capacity.
pos
pos: number;Defined in: IsoBoxWriteCursor.ts:28
The position of the next write.
view
readonly view: DataView;Defined in: IsoBoxWriteCursor.ts:18
A view of the complete buffer, with the unused capacity.
writers?
readonly writers?: IsoBoxWriterMap;Defined in: IsoBoxWriteCursor.ts:33
Map of each box type to the writer of that box. writeChildBoxes uses the map.