Parser(TBuffer, Int32, String?) Constructor

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Initializes a new instance of the IParser class.

public Parser(TBuffer buffer, int maxDepth = 64, string? sourceName = null)

Parameters

buffer
{TBuffer}

The input where the YAML stream is to be read.

maxDepth
Int32

The maximum allowed nesting depth for mappings and sequences.

sourceName
String

The optional source name used when reporting depth-limit failures.