TlvObject Class
Namespace: Yubico.Core.Tlv Assembly: Yubico.Core.dllTag, length, Value structure that helps to parse APDU response data. This class handles BER-TLV encoded data with determinate length.
C#
public class TlvObject : Object
Inheritance
System.Object
TlvObject
Constructors
Name | Description |
---|---|
TlvObject(Int32, ReadOnlySpan<Byte>) | Creates a new TLV (Tag-Length-Value) object with the specified tag and value. |
Properties
Name | Description |
---|---|
Length | Returns the length of the value. |
Tag | Returns the tag. |
Value | Returns the value. |
Methods
Name | Description |
---|---|
GetBytes() | Returns a copy of the Tlv as a BER-TLV encoded byte array. |
Parse(ReadOnlySpan<Byte>) | Parse a Tlv from a BER-TLV encoded byte array. |
ToString() | Returns a string that represents the current object. |