NDNts
    Preparing search index...

    Class Name

    Name.

    This type is immutable.

    Index

    Constructors

    Properties

    comps: readonly Component[] = []

    List of name components.

    Accessors

    • get valueHex(): string

      Name TLV-VALUE hexadecimal representation, good for map keys.

      Returns string

    Methods

    • Retrieve i-th component.

      Parameters

      • i: number

        Component index. Negative number counts from the end.

      Returns Component

      i-th component.

      RangeError Thrown if i-th component does not exist.

    • Retrieve i-th component.

      Parameters

      • i: number

        Component index. Negative number counts from the end.

      Returns undefined | Component

      i-th component, or undefined if it does not exist.