Class Component

Name component. This type is immutable.

Hierarchy

  • Component

Constructors

Properties

Accessors

Methods

Constructors

  • Construct from TLV-TYPE and TLV-VALUE.

    Parameters

    • Optional type: number

      TLV-TYPE, default is GenericNameComponent.

    • Optional value: string | Uint8Array

      TLV-VALUE; if specified as string, it's encoded as UTF-8 but not interpreted as URI representation. Use from() to interpret URI.

    Returns Component

  • Construct from TLV.

    Parameters

    • tlv: Uint8Array

    Returns Component

Properties

tlv: Uint8Array

Whole TLV.

type: number

TLV-TYPE.

value: Uint8Array

TLV-VALUE.

Accessors

Methods

Generated using TypeDoc