Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Encoder

Hierarchy

  • Encoder

Index

Constructors

constructor

  • new Encoder(options?: object): Encoder

Methods

clean

  • clean(): void

encode

  • encode(value: any | null | undefined): this
  • Parameters

    • value: any | null | undefined

    Returns this

encodeArray

  • encodeArray(value: Array<any | null | undefined>): this
  • Parameters

    • value: Array<any | null | undefined>

    Returns this

encodeBoolean

  • encodeBoolean(value: boolean): this

encodeBytes

  • encodeBytes(value: Uint8Array): this

encodeDate

  • encodeDate(value: Date): this

encodeDouble

  • encodeDouble(value: number): this

encodeInteger

  • encodeInteger(value: number): this

encodeMap

  • encodeMap(value: object): this
  • Parameters

    • value: object
      • [key: string]: any

    Returns this

encodeNull

  • encodeNull(): this

encodeNumber

  • encodeNumber(value: number): this

encodeObject

  • encodeObject(value: Object): this

encodeRegExp

  • encodeRegExp(value: RegExp): this

encodeSimple

  • encodeSimple(value: number): this

encodeString

  • encodeString(value: string): this

encodeUndefined

  • encodeUndefined(): this

finish

  • finish(): Uint8Array

reset

  • reset(): this

Generated using TypeDoc