Provides an interface to write text to a Span<byte>.
void Write(string text)
Writes the text to the span, advancing the current position.
readonly int CharsWritten
Gets the number of characters written.
readonly int BytesWritten
Gets the number of bytes written.
void Write(scoped ReadOnlySpan< char > text)
Writes the text to the span, advancing the current position.
void WriteLine()
Writes a line feed to the span.
readonly Encoding _encoding
EncodingSpanWriter(Encoding encoding, Span< byte > span)
Initializes a new instance.