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.
Disposes the text source by freeing the underlying stream, if any.
Inserts the given content at the current insertation mark. Moves the
insertation mark.
Prefetches the whole stream by expanding the internal buffer.
Prefetches the number of bytes by expanding the internal buffer.
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.