Interface ArrayBufferView<Data>

Similar to ByteView but extends ArrayBuffer.

interface ArrayBufferView<Data> {
    [Marker]?: Data;
    [toStringTag]: string;
    byteLength: number;
    slice(begin, end?): ArrayBuffer;
}

Type Parameters

  • Data

Hierarchy (view full)

Properties

[Marker]?: Data
[toStringTag]: string
byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Methods

  • Returns a section of an ArrayBuffer.

    Parameters

    • begin: number
    • Optional end: number

    Returns ArrayBuffer