The number of bytes written into the instance.
The WritableStream instance.
OptionalinitInitializes the instance, synchronously or asynchronously
Optionalsize: number
the total size of the written data in bytes.
Appends a chunk of data, synchronously or asynchronously
The chunk data to append.
Represents an instance used to write unknown type of data.
Example
Here is an example of custom Writer class used to write binary strings: