Reader.this

this(ubyte[] buffer, string name = "<unknown>") @safe pure

Construct a Reader.

Parameters

bufferBuffer with YAML data. This may be e.g. the entire contents of a file or a string. will be modified by the Reader and other parts of D:YAML (D:YAML tries to reuse the buffer to minimize memory allocations)
nameFile name if the buffer is the contents of a file or "<unknown>" if the buffer is the contents of a string.

Throws

ReaderException on a UTF decoding error or if there are

nonprintable Unicode characters illegal in YAML.