DecodeMap Method
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.
C#
public static IReadOnlyDictionary<int, ReadOnlyMemory<byte>> DecodeMap(ReadOnlySpan<byte> data)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | data | Sequence of TLV encoded data |
Returns
System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.ReadOnlyMemory<System.Byte>>
Dictionary of Tag-Value pairs