Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EvDecoder<T>

TLV-VALUE decoder that understands Packet Format v0.3 evolvability guidelines.

Type parameters

  • T

Hierarchy

  • EvDecoder

Index

Constructors

constructor

  • new EvDecoder<T>(typeName: string, topTT?: number | readonly number[]): EvDecoder<T>
  • Constructor.

    Type parameters

    • T

    Parameters

    • typeName: string

      type name, used in error messages.

    • topTT: number | readonly number[] = []

      if specified, check top-level TLV-TYPE to be in this list.

    Returns EvDecoder<T>

Properties

Readonly afterTopCallbacks

afterTopCallbacks: TopElementCallback<T>[] = []

Callbacks to receive top-level TLV after decoding TLV-VALUE.

Readonly afterValueCallbacks

afterValueCallbacks: TargetCallback<T>[] = []

Callbacks after decoding TLV-VALUE.

Readonly beforeTopCallbacks

beforeTopCallbacks: TopElementCallback<T>[] = []

Callbacks to receive top-level TLV before decoding TLV-VALUE.

Readonly beforeValueCallbacks

beforeValueCallbacks: TargetCallback<T>[] = []

Callbacks before decoding TLV-VALUE.

Methods

add

decode

  • decode<R>(target: R, decoder: Decoder): R

decodeValue

  • decodeValue<R>(target: R, vd: Decoder): R

setIsCritical

setUnknown

Generated using TypeDoc