Creates the TextWriter instance
Optionalencoding: string
The encoding of the text.
Retrieves all the written data
A promise resolving to the written data.
OptionalinitInitializes the instance asynchronously
Optionalsize: number
the total size of the written data in bytes.
Appends a chunk of data
The chunk data to append.
Represents a Writer instance used to retrieve the written data as a
string.