Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Uint8ArrayConstructor

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Uint8ArrayConstructor(length: number): Uint8Array
  • new Uint8ArrayConstructor(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8Array
  • new Uint8ArrayConstructor(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array
  • Parameters

    • length: number

    Returns Uint8Array

  • Parameters

    Returns Uint8Array

  • Parameters

    Returns Uint8Array

Properties

BYTES_PER_ELEMENT

BYTES_PER_ELEMENT: number

The size in bytes of each element in the array.

prototype

prototype: Uint8Array

Methods

from

  • from(arrayLike: ArrayLike<number>): Uint8Array
  • from<T>(arrayLike: ArrayLike<T>, mapfn: function, thisArg?: any): Uint8Array
  • Creates an array from an array-like or iterable object.

    Parameters

    • arrayLike: ArrayLike<number>

      An array-like or iterable object to convert to an array.

    Returns Uint8Array

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

    Type parameters

    • T

    Parameters

    • arrayLike: ArrayLike<T>

      An array-like or iterable object to convert to an array.

    • mapfn: function

      A mapping function to call on every element of the array.

        • (v: T, k: number): number
        • Parameters

          • v: T
          • k: number

          Returns number

    • Optional thisArg: any

      Value of 'this' used to invoke the mapfn.

    Returns Uint8Array

of

  • of(...items: number[]): Uint8Array
  • Returns a new array from a set of elements.

    Parameters

    • Rest ...items: number[]

      A set of elements to include in the new array object.

    Returns Uint8Array

Generated using TypeDoc