Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataCoder

Hierarchy

  • DataCoder

Index

Constructors

Properties

Methods

Constructors

Properties

packr: Packr

Methods

  • decode<T>(arg: Buffer | Uint8Array): T
  • encode<T>(arg: T): Buffer
  • use(type: number, Class: Function, encode: (arg: any) => any, decode: (arg: any) => any): void
  • Parameters

    • type: number
    • Class: Function
    • encode: (arg: any) => any
        • (arg: any): any
        • Parameters

          • arg: any

          Returns any

    • decode: (arg: any) => any
        • (arg: any): any
        • Parameters

          • arg: any

          Returns any

    Returns void

Generated using TypeDoc