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. The data must be trucated to the remaining size if the requested length is larger than the remaining size.
Represents an instance used to read unknown type of data.
Example
Here is an example of custom Reader class used to read binary strings: