|
IKVM11
11
Java SE 11 Virtual Machine for .NET
|
Provides an interface to write text to a IBufferWriter<byte>. More...
Public Member Functions | |
| EncodingByteBufferWriter (Encoding encoding, ref TWriter buffer) | |
| Initializes a new instance. | |
| void | Write (string text) |
| Writes the text to the span, advancing the current position. | |
| void | Write (ReadOnlySpan< char > text) |
| Writes the text to the span, advancing the current position. | |
| void | WriteLine () |
| Writes a line feed to the span. | |
Public Attributes | |
| readonly Encoding | _encoding |
| TWriter | _buffer |
| int | _bytesWritten |
| int | _charsWritten |
Properties | |
| readonly int | BytesWritten [get] |
| Gets the number of bytes written. | |
| readonly int | CharsWritten [get] |
| Gets the number of characters written. | |
Provides an interface to write text to a IBufferWriter<byte>.
| TWriter | : | IBufferWriter<byte> |
Definition at line 11 of file EncodingByteBufferWriter.cs.
| IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >.EncodingByteBufferWriter | ( | Encoding | encoding, |
| ref TWriter | buffer ) |
Initializes a new instance.
| encoding | |
| buffer |
Definition at line 25 of file EncodingByteBufferWriter.cs.
| void IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >.Write | ( | ReadOnlySpan< char > | text | ) |
Writes the text to the span, advancing the current position.
| text |
Definition at line 59 of file EncodingByteBufferWriter.cs.
| void IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >.Write | ( | string | text | ) |
Writes the text to the span, advancing the current position.
| text |
Definition at line 45 of file EncodingByteBufferWriter.cs.
| void IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >.WriteLine | ( | ) |
Writes a line feed to the span.
Definition at line 72 of file EncodingByteBufferWriter.cs.
| TWriter IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >._buffer |
Definition at line 16 of file EncodingByteBufferWriter.cs.
| int IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >._bytesWritten |
Definition at line 17 of file EncodingByteBufferWriter.cs.
| int IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >._charsWritten |
Definition at line 18 of file EncodingByteBufferWriter.cs.
| readonly Encoding IKVM.CoreLib.Text.EncodingByteBufferWriter< TWriter >._encoding |
Definition at line 15 of file EncodingByteBufferWriter.cs.
|
get |
Gets the number of bytes written.
Definition at line 34 of file EncodingByteBufferWriter.cs.
|
get |
Gets the number of characters written.
Definition at line 39 of file EncodingByteBufferWriter.cs.