2022-02-25 04:35:49 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* https://streams.spec.whatwg.org/#byob-reader-class-definition
|
|
|
|
*/
|
|
|
|
|
2023-01-09 19:54:52 +03:00
|
|
|
[Exposed=*]
|
2022-01-05 01:33:22 +03:00
|
|
|
interface ReadableStreamBYOBReader {
|
|
|
|
[Throws]
|
|
|
|
constructor(ReadableStream stream);
|
|
|
|
|
2022-05-02 10:44:24 +03:00
|
|
|
[NewObject]
|
2022-04-20 17:34:18 +03:00
|
|
|
Promise<ReadableStreamReadResult> read(ArrayBufferView view);
|
2022-01-05 01:33:22 +03:00
|
|
|
|
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined releaseLock();
|
2022-01-05 01:33:22 +03:00
|
|
|
};
|
|
|
|
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
|