Function getTypedArray

  • Create a typed array from an ArrayBuffer by name

    Parameters

    • type: "Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array"

      Name of the typed array constructor

    • buffer: ArrayBuffer

      ArrayBuffer to use

    Returns Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array

Generated using TypeDoc