Skip to content

Class: IsoBoxWriteView ​

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:10

A view for writing ISO BMFF data.

Constructors ​

Constructor ​

ts
new IsoBoxWriteView(type, size): IsoBoxWriteView;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:19

Constructs a new IsoBoxWriteView.

Parameters ​

type ​

string

size ​

number

The size of the data view.

Returns ​

IsoBoxWriteView

Accessors ​

buffer ​

Get Signature ​

ts
get buffer(): ArrayBufferLike;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:30

The buffer of the data view.

Returns ​

ArrayBufferLike

The buffer of the data view.


byteLength ​

Get Signature ​

ts
get byteLength(): number;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:39

The length of the data view.

Returns ​

number

The length of the data view.


byteOffset ​

Get Signature ​

ts
get byteOffset(): number;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:48

The offset of the data view.

Returns ​

number

The offset of the data view.

Methods ​

writeArray() ​

ts
writeArray<T>(
   data, 
   type, 
   size, 
   length
): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:193

Writes an array of numbers to the data view.

Type Parameters ​

T ​

T extends keyof IsoFieldTypeMap

Parameters ​

data ​

number[]

The data to write.

type ​

T

The type of the data.

size ​

number

The size, in bytes, of each data value.

length ​

number

The number of values to write. (optional)

Returns ​

void


writeBoxHeader() ​

ts
writeBoxHeader(type, size): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:225

Writes a box header to the data view.

Parameters ​

type ​

string

The type of the box.

size ​

number

The size, in bytes, of the box.

Returns ​

void


writeBytes() ​

ts
writeBytes(data): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:173

Writes a Uint8Array to the data view.

Parameters ​

data ​

| Uint8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike>[]

The data to write.

Returns ​

void


writeFullBox() ​

ts
writeFullBox(version, flags): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:243

Writes a full box header to the data view.

Parameters ​

version ​

number

The version of the full box.

flags ​

number

The flags of the full box.

Returns ​

void


writeInt() ​

ts
writeInt(value, size): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:102

Writes an int to the data view.

Parameters ​

value ​

number

The value to write.

size ​

number

The size, in bytes, of the value.

Returns ​

void


writeString() ​

ts
writeString(value): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:136

Writes a string to the data view.

Parameters ​

value ​

string

The value to write.

Returns ​

void


writeTemplate() ​

ts
writeTemplate(value, size): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:213

Writes a template to the data view.

Parameters ​

value ​

number

The value to write.

size ​

number

The size, in bytes, of the template.

Returns ​

void


writeTerminatedString() ​

ts
writeTerminatedString(value): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:147

Writes a null terminated string to the data view.

Parameters ​

value ​

string

The value to write.

Returns ​

void


writeUint() ​

ts
writeUint(value, size): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:58

Writes a uint to the data view.

Parameters ​

value ​

number

The value to write.

size ​

number

The size, in bytes, of the value.

Returns ​

void


writeUtf8TerminatedString() ​

ts
writeUtf8TerminatedString(value): void;

Defined in: libs/iso-bmff/src/IsoBoxWriteView.ts:160

Writes a UTF-8 null terminated string to the data view.

Parameters ​

value ​

string

The value to write.

Returns ​

void

A Streaming Video Technology Alliance project.