mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-30 19:37:21 +02:00
When the min option is given the read will only be fulfilled when there are min or more elements available in the readable byte stream. When the min option is not given the default value for min is 1. (cherry picked from commit 907dc84c1e8c3c236ade581f46dabdb144915c1d)
19 lines
610 B
Plaintext
19 lines
610 B
Plaintext
#import <Streams/ReadableStream.idl>
|
|
#import <Streams/ReadableStreamDefaultReader.idl>
|
|
#import <Streams/ReadableStreamGenericReader.idl>
|
|
|
|
// https://streams.spec.whatwg.org/#readablestreambyobreader
|
|
[Exposed=*]
|
|
interface ReadableStreamBYOBReader {
|
|
constructor(ReadableStream stream);
|
|
|
|
Promise<ReadableStreamReadResult> read(ArrayBufferView view, optional ReadableStreamBYOBReaderReadOptions options = {});
|
|
|
|
undefined releaseLock();
|
|
};
|
|
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
|
|
|
|
dictionary ReadableStreamBYOBReaderReadOptions {
|
|
[EnforceRange] unsigned long long min = 1;
|
|
};
|