Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Decoder

Hierarchy

  • Decoder

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Decoder(src: Uint8Array, options?: object): Decoder
  • Creates decoder. If noCopy is true, all read Uint8Arrays will be the subarrays of src.

    If ignoreExtraData is true, decoder will not throw if there's undecoded data at the end of the source.

    Parameters

    • src: Uint8Array
    • Default value options: object = DEFAULT_DECODER_OPTIONS

    Returns Decoder

Accessors

undecodedLength

  • get undecodedLength(): number
  • Gets the number of undecoded bytes left in the buffer.

    Returns number

Methods

decode

  • decode(): any | null | undefined

Generated using TypeDoc