Common utilities for working with Uint8Array and Buffer objects.


  • BufferUtils



  • concat(arrays: Uint8Array[]): Uint8Array
  • createBufferFromDataURI(dataURI: string): Uint8Array
  • decodeText(array: Uint8Array): string
  • encodeText(text: string): Uint8Array
  • equals(a: Uint8Array, b: Uint8Array): boolean
  • pad(srcArray: Uint8Array, paddingByte?: number): Uint8Array
  • padNumber(v: number): number
  • toView(a: TypedArray, byteOffset?: number, byteLength?: number): Uint8Array
  • Returns a Uint8Array view of a typed array, with the same underlying ArrayBuffer.

    A shorthand for:

    const buffer = new Uint8Array(
        array.byteOffset + byteOffset,
        Math.min(array.byteLength, byteLength)
Function symbol, f(📦) → 📦, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy TypeDoc documentation Copyright 2021 under MIT license