Skip to content

Utf8YamlWriter Constructors

Definition

Namespace: Corvus.Yaml
Assembly: Corvus.Text.Json.dll

Overloads

Constructor Description
Utf8YamlWriter(IBufferWriter<byte>, YamlWriterOptions) Initializes a new instance of the Utf8YamlWriter struct with a specified bufferWriter.
Utf8YamlWriter(Stream, YamlWriterOptions) Initializes a new instance of the Utf8YamlWriter struct with a specified utf8Stream.

Utf8YamlWriter(IBufferWriter<byte>, YamlWriterOptions)

Initializes a new instance of the Utf8YamlWriter struct with a specified bufferWriter.

public Utf8YamlWriter(IBufferWriter<byte> bufferWriter, YamlWriterOptions options)

Parameters

Name Type Description
bufferWriter IBufferWriter<byte> The destination for the UTF-8 YAML output.
options YamlWriterOptions Options for controlling the writer behavior. (optional)

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Utf8YamlWriter(Stream, YamlWriterOptions)

Initializes a new instance of the Utf8YamlWriter struct with a specified utf8Stream.

public Utf8YamlWriter(Stream utf8Stream, YamlWriterOptions options)

Parameters

Name Type Description
utf8Stream Stream The stream to write UTF-8 YAML output to.
options YamlWriterOptions Options for controlling the writer behavior. (optional)

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue