interface Uint8ArrayConstructor
Private

Properties

readonly
BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

Methods

of(...items: number[]): Uint8Array

Returns a new array from a set of elements.

from(arrayLike: ArrayLike<number>): Uint8Array

Creates an array from an array-like or iterable object.

from<T>(
arrayLike: ArrayLike<T>,
mapfn: (
v: T,
k: number,
) => number
,
thisArg?: any,
): Uint8Array

Creates an array from an array-like or iterable object.