Creates the TextWriter instance
Optionalencoding: stringThe encoding of the text.
Retrieves all the written data
A promise resolving to the written data.
OptionalinitInitializes the instance asynchronously
Optionalsize: numberthe 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.