GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for ReadableByteStreamController.

Developer library 6

Firefox 102 release notes for developers

byte transfer of data from an underlying byte source to a consumer (bypassing the stream's internal queues). The new interfaces are ReadableStreamBYOBReader, ReadableByteStreamController and ReadableStreamBYOBRequest ([Firefox bug 1767342](https://bugzil.la/1767342)). ### Security - Support of the [`wasm-unsafe-eval`](/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/script-src#unsafe_webassembly_execution

ReadableStreamBYOBReader: ReadableStreamBYOBReader() constructor

- : Thrown if the supplied `stream` parameter is not a ReadableStream, or it is already locked for reading by another reader, or its stream controller is not a ReadableByteStreamController. ## Examples The constructor is rarely called directly. Instead call ReadableStream.getReader() as shown: ```js const reader = stream.getReader({ mode: "byob" }); ``` ## Specifications ## Browser compatibility ## See also

ReadableByteStreamController

Streams The **`ReadableByteStreamController`** interface of the [Streams API](/docs/Web/API/Streams_API) represents a controller for a [readable byte stream](/docs/Web/API/Streams_API/Using_readable_byte_streams). It allows control of the state and internal queue of a ReadableStream with an underlying byte source, and enables efficient zero-copy transfer of data from the underlying source to a consumer when the stre

ReadableByteStreamController: enqueue() method

Streams The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues). This should only be used to transfer data to the queue when byobRequest is `null`. ## Syntax ```js-nolint enqueue(chunk) ``` ### Parameters - `chunk` - : The chunk to enqueue. ### Return value None (undefi

ReadableByteStreamController: desiredSize property

Streams The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its "desired size". The value is used by the stream to indicate a preferred flow rate to the underlying source. Sources that support throttling or pausing their inflow of data (not all do!) should control the inflow such that `desiredSize` of the

ReadableByteStreamController: byobRequest property

Streams The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests. An underlying byte source should check this property, and use it to write data to the stream if it exists (rather than using ReadableByteStreamController.enqueue()). This will result in an efficient zero-byte transfer of the data to the consumer

JSON results · Services directory