Skip to content

Type Alias: IsoBoxReader<B, V> ​

ts
type IsoBoxReader<B, V> = (cursor, type) => B;

Defined in: IsoBoxReader.ts:14

A function that reads the fields of one box at the position of a read cursor and returns the box.

The position is the first byte after the box header. For a uuid box, the position is the first byte of usertype. The result is the complete box with its type field. The type parameter V is the type of the 64-bit integer fields of the cursor that the reader accepts.

Type Parameters ​

B ​

B extends object = { type: IsoBoxType; }

V ​

V extends IsoInt64 = number

Parameters ​

cursor ​

IsoBoxReadCursor<V>

type ​

B["type"]

Returns ​

B

A Streaming Video Technology Alliance project.