2022-01-17 00:06:25 +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/#rbs-controller-class-definition
|
|
|
|
*/
|
|
|
|
|
2023-01-09 19:54:52 +03:00
|
|
|
[Exposed=*]
|
2022-01-05 01:33:21 +03:00
|
|
|
interface ReadableByteStreamController {
|
2022-01-19 12:56:49 +03:00
|
|
|
[Throws] // Throws on OOM
|
2022-01-05 01:33:21 +03:00
|
|
|
readonly attribute ReadableStreamBYOBRequest? byobRequest;
|
2022-01-19 12:56:49 +03:00
|
|
|
|
2022-01-05 01:33:21 +03:00
|
|
|
readonly attribute unrestricted double? desiredSize;
|
|
|
|
|
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined close();
|
2022-01-05 01:33:21 +03:00
|
|
|
|
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined enqueue(ArrayBufferView chunk);
|
2022-01-05 01:33:21 +03:00
|
|
|
|
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined error(optional any e);
|
2022-01-05 01:33:21 +03:00
|
|
|
};
|