API

Interface IDataBuffer

Interface for a data buffer

interface IDataBuffer {
    byteLength: number;
    readAsync(
        byteOffset: number,
        byteLength: number,
    ): Promise<ArrayBufferView<ArrayBufferLike>>;
}
Index
byteLength: number

The byte length of the buffer.

  • Reads bytes from the data buffer.

    Parameters

    • byteOffset: number

      The byte offset to read

    • byteLength: number

      The byte length to read

    Returns Promise<ArrayBufferView<ArrayBufferLike>>

    A promise that resolves when the bytes are read