Utf8YamlReaderState Struct

The state of a Utf8YamlReader, to continue reading in a new reader when the input comes in several buffers.

public struct Utf8YamlReaderState

Remarks

Get it from Utf8YamlReader.CurrentState, drop the first Utf8YamlReader.BytesConsumed bytes of the input, and pass it with the remaining bytes followed by the new data to the constructor of the next reader.

Constructors

NameDescription
Utf8YamlReaderState(Utf8YamlReaderOptions)Initializes a new state with the specified options.

Utf8YamlReaderState(Utf8YamlReaderOptions)

Utf8YamlReaderState.cs

Initializes a new state with the specified options.

public Utf8YamlReaderState(Utf8YamlReaderOptions options)

Parameters

options Utf8YamlReaderOptions

Properties

NameDescription
OptionsGets the options of the reader.

Gets the options of the reader.

public readonly Utf8YamlReaderOptions Options { get; }

Property value

Utf8YamlReaderOptions