ReadableStreamBYOBRequest

The ReadableStreamBYOBRequest interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).

MDN Reference

Properties

Link copied to clipboard

The view getter property of the ReadableStreamBYOBRequest interface returns the current view.

Functions

Link copied to clipboard
fun respond(bytesWritten: UInt53)

The respond() method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.

Link copied to clipboard

The respondWithNewView() method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.