Class EvDecoder<T>

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

Type Parameters

  • T

    Target type being decoded.

Constructors

  • Constructor.

    Type Parameters

    • T

    Parameters

    • typeName: string

      type name, used in error messages.

    • topTT: Arrayable<number> = []

      If specified, the top-level TLV-TYPE will be checked to be in this list.

    Returns EvDecoder<T>

Properties

afterObservers: TlvObserver<T>[] = []

Callbacks after decoding TLV-VALUE.

beforeObservers: TlvObserver<T>[] = []

Callbacks before decoding TLV-VALUE.

Methods