Skip to content

Type Alias: IsoBoxWriteCursor ​

ts
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 ​

ts
readonly bytes: Uint8Array<ArrayBuffer>;

Defined in: IsoBoxWriteCursor.ts:23

The bytes of the complete buffer, with the unused capacity.


pos ​

ts
pos: number;

Defined in: IsoBoxWriteCursor.ts:28

The position of the next write.


view ​

ts
readonly view: DataView;

Defined in: IsoBoxWriteCursor.ts:18

A view of the complete buffer, with the unused capacity.


writers? ​

ts
readonly writers?: IsoBoxWriterMap;

Defined in: IsoBoxWriteCursor.ts:33

Map of each box type to the writer of that box. writeChildBoxes uses the map.

A Streaming Video Technology Alliance project.