read
inline suspend fun <T : ArrayBufferView<ArrayBuffer>> ReadableStreamBYOBReader.read(view: T): ReadableStreamReadResult<T>(source)
inline suspend fun <T : ArrayBufferView<ArrayBuffer>> ReadableStreamBYOBReader.read(view: T, options: ReadableStreamBYOBReaderReadOptions): ReadableStreamReadResult<T>(source)
The read() method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream. A request for data will be satisfied from the stream's internal queues if there is any data present. If the stream queues are empty, the request may be supplied as a zero-copy transfer from the underlying byte source.
inline suspend fun <R : JsAny?> ReadableStreamDefaultReader<R>.read(): ReadableStreamReadResult<R>(source)
The read() method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.