Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Encoder

Index

Variables

Const OmitEmpty

OmitEmpty: typeof OmitEmpty = ...

Functions

asDataView

  • asDataView(a: Uint8Array): DataView

encode

extract

  • Extract the encoding output of an element while writing to a larger encoder.

    Parameters

    • obj: Encodable | readonly Encodable[]
    • cb: (output: Uint8Array) => void
        • (output: Uint8Array): void
        • Parameters

          • output: Uint8Array

          Returns void

    Returns Encodable

Const getBigUint64

  • getBigUint64(dv: DataView, byteOffset: number, littleEndian?: boolean): bigint
  • DataView.prototype.getBigUint64 with polyfill for iOS 14.

    Parameters

    • dv: DataView
    • byteOffset: number
    • Optional littleEndian: boolean

    Returns bigint

Const setBigUint64

  • setBigUint64(dv: DataView, byteOffset: number, value: bigint, littleEndian?: boolean): void
  • DataView.prototype.setBigUint64 with polyfill for iOS 14.

    Parameters

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

    Returns void

Generated using TypeDoc