Show / Hide Table of Contents

TlvObjects Class

Namespace: Yubico.Core.Tlv Assembly: Yubico.Core.dll

Utility methods to encode and decode BER-TLV data.

C#
public static class TlvObjects
Inheritance object TlvObjects

Methods

Name Description
DecodeDictionary(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.

DecodeList(ReadOnlySpan<byte>)

Decodes a sequence of BER-TLV encoded data into a list of Tlvs.

EncodeDictionary(IReadOnlyDictionary<int, byte[]>)
EncodeList(IEnumerable<TlvObject>)

Encodes a list of Tlvs into a sequence of BER-TLV encoded data.

EncodeMany(params TlvObject[])

Encodes an array of Tlvs into a sequence of BER-TLV encoded data.

UnpackValue(int, ReadOnlySpan<byte>)

Decode a single TLV encoded object, returning only the value.

In this article
Back to top Generated by DocFX