Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Encoder

TLV encoder that accepts objects in reverse order.

Hierarchy

  • Encoder

Index

Constructors

constructor

  • new Encoder(initSize?: number): Encoder

Accessors

output

  • get output(): Uint8Array

size

  • get size(): number

Methods

encode

prependRoom

  • prependRoom(sizeofObject: number): Uint8Array
  • Make room to prepend an object.

    Parameters

    • sizeofObject: number

      object size.

    Returns Uint8Array

    room to write object.

prependTlv

prependTypeLength

  • prependTypeLength(tlvType: number, tlvLength: number): void

prependValue

  • prependValue(...tlvValue: Encodable[]): void

slice

  • slice(start?: number, length?: number): Uint8Array

Generated using TypeDoc