Show / Hide Table of Contents

TlvObject Class

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

Tag, length, Value structure that helps to parse APDU response data. This class handles BER-TLV encoded data with determinate length.

C#
public sealed class TlvObject
Inheritance object TlvObject

Constructors

Name Description
TlvObject(int, 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 a copy of the value.

Methods

Name Description
Dispose()

Dispose the object and clears its buffers

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.

TryParse(ReadOnlySpan<byte>, out TlvObject?)

Parse a Tlv from a BER-TLV encoded byte array.

In this article
Back to top Generated by DocFX