Construct GenericNameComponent from TLV-VALUE.
Pass TT.GenericNameComponent
as type.
Construct from TLV-TYPE and TLV-VALUE.
Optional
type: numberTLV-TYPE. Default is GenericNameComponent.
Optional
value: string | Uint8ArrayTLV-VALUE. If specified as string, it's encoded as UTF-8 but not interpreted
as URI. Use Component.from()
to interpret URI.
Error
Thrown if type
is not a valid name component TLV-TYPE.
Decode from TLV.
Error
Thrown if tlv
does not contain a complete name component TLV and nothing else.
Internal
Readonly
tlvWhole TLV.
Readonly
typeTLV-TYPE.
Readonly
valueTLV-VALUE.
TLV-LENGTH.
TLV-VALUE interpreted as UTF-8 string.
Convert with naming convention.
Compare this component with other.
Determine if this component equals other.
Determine if component follows a naming convention.
Static
decodeStatic
fromParse from URI representation, or return existing Component.
Name component.
Remarks
This type is immutable.