TextSource
A stream abstraction to handle encoding and more.
Gets or sets the encoding to use.
Gets or sets the current index of the insertation and read point.
Gets the character at the given position in the text buffer.
Gets the length of the text buffer.
Gets the full text buffer.
Creates a new text source from a string. No underlying stream will
be used.
Creates a new text source from a string. The underlying stream is
used as an unknown data source.
Inserts the given content at the current insertation mark. The
insertation mark won't be changed.
Reads the next character from the buffer or underlying stream, if
any.
Reads the next character from the buffer or underlying stream
asynchronously, if any.
Reads the upcoming numbers of characters from the buffer or
underlying stream, if any.
Reads the upcoming numbers of characters from the buffer or
underlying stream asynchronously.