Class Uint8ArrayList

Implements

Constructors

Properties

[symbol]: true = true
bufs: Uint8Array[]
length: number

Accessors

  • get byteLength(): number
  • Returns number

Methods

  • Parameters

    • Optional beginInclusive: number
    • Optional endExclusive: number

    Returns {
        bufs: Uint8Array[];
        length: number;
    }

  • Add one or more bufs to the end of this Uint8ArrayList

    Parameters

    Returns void

  • Add all bufs to the end of this Uint8ArrayList

    Parameters

    Returns void

  • Remove bytes from the front of the pool

    Parameters

    • bytes: number

    Returns void

  • Read the value at index

    Parameters

    • index: number

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns bigint

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns bigint

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • byteOffset: number

    Returns number

  • Add one or more bufs to the start of this Uint8ArrayList

    Parameters

    Returns void

  • Add all bufs to the start of this Uint8ArrayList

    Parameters

    Returns void

  • Set the value at index to value

    Parameters

    • index: number
    • value: number

    Returns void

  • Parameters

    • byteOffset: number
    • value: bigint
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: bigint
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number

    Returns void

  • Extracts a section of an array and returns a new array.

    This is a copy operation as it is with Uint8Arrays and Arrays

    • note this is different to the behaviour of Node Buffers.

    Parameters

    • Optional beginInclusive: number
    • Optional endExclusive: number

    Returns Uint8Array

  • Returns a alloc from the given start and end element index.

    In the best case where the data extracted comes from a single Uint8Array internally this is a no-copy operation otherwise it is a copy operation.

    Parameters

    • Optional beginInclusive: number
    • Optional endExclusive: number

    Returns Uint8Array

  • Returns a allocList from the given start and end element index.

    This is a no-copy operation.

    Parameters

    • Optional beginInclusive: number
    • Optional endExclusive: number

    Returns Uint8ArrayList

  • Copy bytes from buf to the index specified by offset

    Parameters

    Returns void

  • Create a Uint8ArrayList from a pre-existing list of Uint8Arrays. Use this method if you know the total size of all the Uint8Arrays ahead of time.

    Parameters

    Returns Uint8ArrayList

Generated using TypeDoc