TlvReader Constructor
TlvReader(ReadOnlyMemory<Byte>)
Build a new Reader object based on the given encoding.
C#
public TlvReader(ReadOnlyMemory<byte> encoding)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | encoding | The TLV encoding to read. |
Remarks
This sets the position of the reader to the leading byte, the first tag.
Note that the object will copy a reference to the encoding. Do not clear or alter the encoding until after the full encoding has been read and each value operated on.