@rendley/sdk - v1.12.6
    Preparing search index...

    Interface ITypedArray

    PixiJS classes use this type instead of ArrayBuffer and typed arrays to support expressions like geometry.buffers[0].data[0] = position.x.

    Gives access to indexing and length field.

    • @popelyshev: If data is actually ArrayBuffer and throws Exception on indexing - its user problem :)

    PIXI

    interface ITypedArray {
        "[toStringTag]": "ArrayBuffer";
        byteLength: number;
        BYTES_PER_ELEMENT: number;
        length: number;
        get detached(): boolean;
        get maxByteLength(): number;
        get resizable(): boolean;
        resize(newByteLength?: number): void;
        slice(begin?: number, end?: number): ArrayBuffer;
        transfer(newByteLength?: number): ArrayBuffer;
        transferToFixedLength(newByteLength?: number): ArrayBuffer;
        [index: number]: number;
    }

    Hierarchy (View Summary)

    Indexable

    • [index: number]: number
    Index

    Properties

    "[toStringTag]": "ArrayBuffer"
    byteLength: number

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

    BYTES_PER_ELEMENT: number
    length: number

    Accessors

    • get detached(): boolean

      Returns a boolean indicating whether or not this buffer has been detached (transferred).

      MDN

      Returns boolean

    • get maxByteLength(): number

      If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.

      MDN

      Returns number

    • get resizable(): boolean

      Returns true if this ArrayBuffer can be resized.

      MDN

      Returns boolean

    Methods

    • Resizes the ArrayBuffer to the specified size (in bytes).

      MDN

      Parameters

      • OptionalnewByteLength: number

      Returns void

    • Returns a section of an ArrayBuffer.

      Parameters

      • Optionalbegin: number
      • Optionalend: number

      Returns ArrayBuffer

    • Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.

      MDN

      Parameters

      • OptionalnewByteLength: number

      Returns ArrayBuffer

    • Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.

      MDN

      Parameters

      • OptionalnewByteLength: number

      Returns ArrayBuffer