Creates the TextWriter instance
Optional
encoding: stringThe encoding of the text.
Retrieves all the written data
A promise resolving to the written data.
Optional
initInitializes the instance asynchronously
Optional
size: 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
.