TlvObjects Class
Namespace: Yubico.Core.Tlv Assembly: Yubico.Core.dllUtility methods to encode and decode BER-TLV data.
C#
public static class TlvObjects : Object
Inheritance
System.Object
TlvObjects
Methods
Name | Description |
---|---|
DecodeList(ReadOnlySpan<Byte>) | Decodes a sequence of BER-TLV encoded data into a list of Tlvs. |
DecodeMap(ReadOnlySpan<Byte>) | Decodes a sequence of BER-TLV encoded data into a mapping of Tag-Value pairs. Iteration order is preserved. If the same tag occurs more than once only the latest will be kept. |
EncodeList(IEnumerable<TlvObject>) | Encodes a list of Tlvs into a sequence of BER-TLV encoded data. |
EncodeMany(TlvObject[]) | Encodes an array of Tlvs into a sequence of BER-TLV encoded data. |
UnpackValue(Int32, ReadOnlySpan<Byte>) | Decode a single TLV encoded object, returning only the value. |