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