The ReadableStream
instance.
The total size of the data in bytes.
Optional
initInitializes the instance asynchronously
Reads a chunk of data
The byte index of the data to read.
The length of the data to read in bytes.
A promise resolving to a chunk of data.
Represents an instance used to read unknown type of data.
Example
Here is an example of custom Reader class used to read binary strings: