Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Extension<T, R>

An extension sub element on a parent TLV element. T is the parent TLV element type. R is the value type of this extension.

Type parameters

  • T

  • R = unknown

Hierarchy

  • Extension

Index

Properties

Methods

Properties

Optional Readonly order

order: number

Order relative to other extensions, used on encoding only.

Readonly tt

tt: number

TLV-TYPE.

Methods

decode

  • decode(obj: T, tlv: Tlv, accumulator?: R): R
  • Decode extension element.

    Parameters

    • obj: T

      parent object.

    • tlv: Tlv

      TLV of sub element; its TLV-TYPE would be this.tt .

    • Optional accumulator: R

      previous decoded value, if extension element appears more than once.

    Returns R

encode

Generated using TypeDoc