Show / Hide Table of Contents

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
ReadOnlyMemory<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.

In this article
Back to top Generated by DocFX