Show / Hide Table of Contents

DecodeDictionary Method

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.

C#
public static IReadOnlyDictionary<int, ReadOnlyMemory<byte>> DecodeDictionary(ReadOnlySpan<byte> data)

Parameters

Type Name Description
ReadOnlySpan<byte> data

Sequence of TLV encoded data

Returns

IReadOnlyDictionary<int, ReadOnlyMemory<byte>>

Dictionary of Tag-Value pairs

In this article
Back to top Generated by DocFX