pixi.js
    Preparing search index...

    Class ViewableBufferAdvanced

    Flexible wrapper around ArrayBuffer that also provides typed array views on demand.

    Index

    Constructors

    Properties

    float32View: Float32Array

    View on the raw binary data as a Float32Array.

    rawBinaryData: ArrayBuffer

    Underlying ArrayBuffer that holds all the data and is of capacity this.size.

    size: number

    The size of the buffer in bytes.

    uint16View: Uint16Array

    View on the raw binary data as a Uint16Array.

    uint32View: Uint32Array

    View on the raw binary data as a Uint32Array.

    Accessors

    Methods

    • Destroys all buffer references. Do not use after calling this.

      Returns void

    • Returns the view of the given type.

      Parameters

      • type: string

        One of int8, uint8, int16, uint16, int32, uint32, and float32.

      Returns TypedArray

      • typed array of given type
    • Returns the size of the given type in bytes.

      Parameters

      • type: string

        One of int8, uint8, int16, uint16, int32, uint32, and float32.

      Returns number

      • size of the type in bytes