ReadableStreamBYOBReader
open class ReadableStreamBYOBReader(stream: ReadableStream<Uint8Array<ArrayBuffer>>) : ReadableStreamGenericReader(source)
The ReadableStreamBYOBReader interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : ArrayBufferView<*>> ReadableStreamBYOBReader.read(view: T): ReadableStreamReadResult<T>
inline suspend fun <T : ArrayBufferView<*>> ReadableStreamBYOBReader.read(view: T, options: ReadableStreamBYOBReaderReadOptions): ReadableStreamReadResult<T>
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.
Link copied to clipboard
fun <T : ArrayBufferView<*>> readAsync(view: T, options: ReadableStreamBYOBReaderReadOptions = definedExternally): Promise<ReadableStreamReadResult<T>>
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.
Link copied to clipboard
The releaseLock() method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.