Concatenates N byte arrays.
Creates a byte array from a Data URI.
Decodes a byte array to text.
Encodes text to a byte array.
Returns true if given byte array instances are equal.
Pads a Uint8Array to the next 4-byte boundary.
Reference: glTF → Data Alignment
Pads a number to 4-byte boundaries.
Returns a Uint8Array view of a typed array, with the same underlying ArrayBuffer.
A shorthand for:
const buffer = new Uint8Array(
array.buffer,
array.byteOffset + byteOffset,
Math.min(array.byteLength, byteLength)
);
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
Common utilities for working with Uint8Array and Buffer objects.