11cb0ef41Sopenharmony_ci// GENERATED CONTENT - DO NOT EDIT 21cb0ef41Sopenharmony_ci// Content was automatically extracted by Reffy into webref 31cb0ef41Sopenharmony_ci// (https://github.com/w3c/webref) 41cb0ef41Sopenharmony_ci// Source: Streams Standard (https://streams.spec.whatwg.org/) 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet), Transferable] 71cb0ef41Sopenharmony_ciinterface ReadableStream { 81cb0ef41Sopenharmony_ci constructor(optional object underlyingSource, optional QueuingStrategy strategy = {}); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci readonly attribute boolean locked; 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ci Promise<undefined> cancel(optional any reason); 131cb0ef41Sopenharmony_ci ReadableStreamReader getReader(optional ReadableStreamGetReaderOptions options = {}); 141cb0ef41Sopenharmony_ci ReadableStream pipeThrough(ReadableWritablePair transform, optional StreamPipeOptions options = {}); 151cb0ef41Sopenharmony_ci Promise<undefined> pipeTo(WritableStream destination, optional StreamPipeOptions options = {}); 161cb0ef41Sopenharmony_ci sequence<ReadableStream> tee(); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ci async iterable<any>(optional ReadableStreamIteratorOptions options = {}); 191cb0ef41Sopenharmony_ci}; 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_citypedef (ReadableStreamDefaultReader or ReadableStreamBYOBReader) ReadableStreamReader; 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_cienum ReadableStreamReaderMode { "byob" }; 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_cidictionary ReadableStreamGetReaderOptions { 261cb0ef41Sopenharmony_ci ReadableStreamReaderMode mode; 271cb0ef41Sopenharmony_ci}; 281cb0ef41Sopenharmony_ci 291cb0ef41Sopenharmony_cidictionary ReadableStreamIteratorOptions { 301cb0ef41Sopenharmony_ci boolean preventCancel = false; 311cb0ef41Sopenharmony_ci}; 321cb0ef41Sopenharmony_ci 331cb0ef41Sopenharmony_cidictionary ReadableWritablePair { 341cb0ef41Sopenharmony_ci required ReadableStream readable; 351cb0ef41Sopenharmony_ci required WritableStream writable; 361cb0ef41Sopenharmony_ci}; 371cb0ef41Sopenharmony_ci 381cb0ef41Sopenharmony_cidictionary StreamPipeOptions { 391cb0ef41Sopenharmony_ci boolean preventClose = false; 401cb0ef41Sopenharmony_ci boolean preventAbort = false; 411cb0ef41Sopenharmony_ci boolean preventCancel = false; 421cb0ef41Sopenharmony_ci AbortSignal signal; 431cb0ef41Sopenharmony_ci}; 441cb0ef41Sopenharmony_ci 451cb0ef41Sopenharmony_cidictionary UnderlyingSource { 461cb0ef41Sopenharmony_ci UnderlyingSourceStartCallback start; 471cb0ef41Sopenharmony_ci UnderlyingSourcePullCallback pull; 481cb0ef41Sopenharmony_ci UnderlyingSourceCancelCallback cancel; 491cb0ef41Sopenharmony_ci ReadableStreamType type; 501cb0ef41Sopenharmony_ci [EnforceRange] unsigned long long autoAllocateChunkSize; 511cb0ef41Sopenharmony_ci}; 521cb0ef41Sopenharmony_ci 531cb0ef41Sopenharmony_citypedef (ReadableStreamDefaultController or ReadableByteStreamController) ReadableStreamController; 541cb0ef41Sopenharmony_ci 551cb0ef41Sopenharmony_cicallback UnderlyingSourceStartCallback = any (ReadableStreamController controller); 561cb0ef41Sopenharmony_cicallback UnderlyingSourcePullCallback = Promise<undefined> (ReadableStreamController controller); 571cb0ef41Sopenharmony_cicallback UnderlyingSourceCancelCallback = Promise<undefined> (optional any reason); 581cb0ef41Sopenharmony_ci 591cb0ef41Sopenharmony_cienum ReadableStreamType { "bytes" }; 601cb0ef41Sopenharmony_ci 611cb0ef41Sopenharmony_ciinterface mixin ReadableStreamGenericReader { 621cb0ef41Sopenharmony_ci readonly attribute Promise<undefined> closed; 631cb0ef41Sopenharmony_ci 641cb0ef41Sopenharmony_ci Promise<undefined> cancel(optional any reason); 651cb0ef41Sopenharmony_ci}; 661cb0ef41Sopenharmony_ci 671cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 681cb0ef41Sopenharmony_ciinterface ReadableStreamDefaultReader { 691cb0ef41Sopenharmony_ci constructor(ReadableStream stream); 701cb0ef41Sopenharmony_ci 711cb0ef41Sopenharmony_ci Promise<ReadableStreamDefaultReadResult> read(); 721cb0ef41Sopenharmony_ci undefined releaseLock(); 731cb0ef41Sopenharmony_ci}; 741cb0ef41Sopenharmony_ciReadableStreamDefaultReader includes ReadableStreamGenericReader; 751cb0ef41Sopenharmony_ci 761cb0ef41Sopenharmony_cidictionary ReadableStreamDefaultReadResult { 771cb0ef41Sopenharmony_ci any value; 781cb0ef41Sopenharmony_ci boolean done; 791cb0ef41Sopenharmony_ci}; 801cb0ef41Sopenharmony_ci 811cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 821cb0ef41Sopenharmony_ciinterface ReadableStreamBYOBReader { 831cb0ef41Sopenharmony_ci constructor(ReadableStream stream); 841cb0ef41Sopenharmony_ci 851cb0ef41Sopenharmony_ci Promise<ReadableStreamBYOBReadResult> read(ArrayBufferView view); 861cb0ef41Sopenharmony_ci undefined releaseLock(); 871cb0ef41Sopenharmony_ci}; 881cb0ef41Sopenharmony_ciReadableStreamBYOBReader includes ReadableStreamGenericReader; 891cb0ef41Sopenharmony_ci 901cb0ef41Sopenharmony_cidictionary ReadableStreamBYOBReadResult { 911cb0ef41Sopenharmony_ci ArrayBufferView value; 921cb0ef41Sopenharmony_ci boolean done; 931cb0ef41Sopenharmony_ci}; 941cb0ef41Sopenharmony_ci 951cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 961cb0ef41Sopenharmony_ciinterface ReadableStreamDefaultController { 971cb0ef41Sopenharmony_ci readonly attribute unrestricted double? desiredSize; 981cb0ef41Sopenharmony_ci 991cb0ef41Sopenharmony_ci undefined close(); 1001cb0ef41Sopenharmony_ci undefined enqueue(optional any chunk); 1011cb0ef41Sopenharmony_ci undefined error(optional any e); 1021cb0ef41Sopenharmony_ci}; 1031cb0ef41Sopenharmony_ci 1041cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 1051cb0ef41Sopenharmony_ciinterface ReadableByteStreamController { 1061cb0ef41Sopenharmony_ci readonly attribute ReadableStreamBYOBRequest? byobRequest; 1071cb0ef41Sopenharmony_ci readonly attribute unrestricted double? desiredSize; 1081cb0ef41Sopenharmony_ci 1091cb0ef41Sopenharmony_ci undefined close(); 1101cb0ef41Sopenharmony_ci undefined enqueue(ArrayBufferView chunk); 1111cb0ef41Sopenharmony_ci undefined error(optional any e); 1121cb0ef41Sopenharmony_ci}; 1131cb0ef41Sopenharmony_ci 1141cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 1151cb0ef41Sopenharmony_ciinterface ReadableStreamBYOBRequest { 1161cb0ef41Sopenharmony_ci readonly attribute ArrayBufferView? view; 1171cb0ef41Sopenharmony_ci 1181cb0ef41Sopenharmony_ci undefined respond([EnforceRange] unsigned long long bytesWritten); 1191cb0ef41Sopenharmony_ci undefined respondWithNewView(ArrayBufferView view); 1201cb0ef41Sopenharmony_ci}; 1211cb0ef41Sopenharmony_ci 1221cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet), Transferable] 1231cb0ef41Sopenharmony_ciinterface WritableStream { 1241cb0ef41Sopenharmony_ci constructor(optional object underlyingSink, optional QueuingStrategy strategy = {}); 1251cb0ef41Sopenharmony_ci 1261cb0ef41Sopenharmony_ci readonly attribute boolean locked; 1271cb0ef41Sopenharmony_ci 1281cb0ef41Sopenharmony_ci Promise<undefined> abort(optional any reason); 1291cb0ef41Sopenharmony_ci Promise<undefined> close(); 1301cb0ef41Sopenharmony_ci WritableStreamDefaultWriter getWriter(); 1311cb0ef41Sopenharmony_ci}; 1321cb0ef41Sopenharmony_ci 1331cb0ef41Sopenharmony_cidictionary UnderlyingSink { 1341cb0ef41Sopenharmony_ci UnderlyingSinkStartCallback start; 1351cb0ef41Sopenharmony_ci UnderlyingSinkWriteCallback write; 1361cb0ef41Sopenharmony_ci UnderlyingSinkCloseCallback close; 1371cb0ef41Sopenharmony_ci UnderlyingSinkAbortCallback abort; 1381cb0ef41Sopenharmony_ci any type; 1391cb0ef41Sopenharmony_ci}; 1401cb0ef41Sopenharmony_ci 1411cb0ef41Sopenharmony_cicallback UnderlyingSinkStartCallback = any (WritableStreamDefaultController controller); 1421cb0ef41Sopenharmony_cicallback UnderlyingSinkWriteCallback = Promise<undefined> (any chunk, WritableStreamDefaultController controller); 1431cb0ef41Sopenharmony_cicallback UnderlyingSinkCloseCallback = Promise<undefined> (); 1441cb0ef41Sopenharmony_cicallback UnderlyingSinkAbortCallback = Promise<undefined> (optional any reason); 1451cb0ef41Sopenharmony_ci 1461cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 1471cb0ef41Sopenharmony_ciinterface WritableStreamDefaultWriter { 1481cb0ef41Sopenharmony_ci constructor(WritableStream stream); 1491cb0ef41Sopenharmony_ci 1501cb0ef41Sopenharmony_ci readonly attribute Promise<undefined> closed; 1511cb0ef41Sopenharmony_ci readonly attribute unrestricted double? desiredSize; 1521cb0ef41Sopenharmony_ci readonly attribute Promise<undefined> ready; 1531cb0ef41Sopenharmony_ci 1541cb0ef41Sopenharmony_ci Promise<undefined> abort(optional any reason); 1551cb0ef41Sopenharmony_ci Promise<undefined> close(); 1561cb0ef41Sopenharmony_ci undefined releaseLock(); 1571cb0ef41Sopenharmony_ci Promise<undefined> write(optional any chunk); 1581cb0ef41Sopenharmony_ci}; 1591cb0ef41Sopenharmony_ci 1601cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 1611cb0ef41Sopenharmony_ciinterface WritableStreamDefaultController { 1621cb0ef41Sopenharmony_ci undefined error(optional any e); 1631cb0ef41Sopenharmony_ci}; 1641cb0ef41Sopenharmony_ci 1651cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet), Transferable] 1661cb0ef41Sopenharmony_ciinterface TransformStream { 1671cb0ef41Sopenharmony_ci constructor(optional object transformer, 1681cb0ef41Sopenharmony_ci optional QueuingStrategy writableStrategy = {}, 1691cb0ef41Sopenharmony_ci optional QueuingStrategy readableStrategy = {}); 1701cb0ef41Sopenharmony_ci 1711cb0ef41Sopenharmony_ci readonly attribute ReadableStream readable; 1721cb0ef41Sopenharmony_ci readonly attribute WritableStream writable; 1731cb0ef41Sopenharmony_ci}; 1741cb0ef41Sopenharmony_ci 1751cb0ef41Sopenharmony_cidictionary Transformer { 1761cb0ef41Sopenharmony_ci TransformerStartCallback start; 1771cb0ef41Sopenharmony_ci TransformerTransformCallback transform; 1781cb0ef41Sopenharmony_ci TransformerFlushCallback flush; 1791cb0ef41Sopenharmony_ci any readableType; 1801cb0ef41Sopenharmony_ci any writableType; 1811cb0ef41Sopenharmony_ci}; 1821cb0ef41Sopenharmony_ci 1831cb0ef41Sopenharmony_cicallback TransformerStartCallback = any (TransformStreamDefaultController controller); 1841cb0ef41Sopenharmony_cicallback TransformerFlushCallback = Promise<undefined> (TransformStreamDefaultController controller); 1851cb0ef41Sopenharmony_cicallback TransformerTransformCallback = Promise<undefined> (any chunk, TransformStreamDefaultController controller); 1861cb0ef41Sopenharmony_ci 1871cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 1881cb0ef41Sopenharmony_ciinterface TransformStreamDefaultController { 1891cb0ef41Sopenharmony_ci readonly attribute unrestricted double? desiredSize; 1901cb0ef41Sopenharmony_ci 1911cb0ef41Sopenharmony_ci undefined enqueue(optional any chunk); 1921cb0ef41Sopenharmony_ci undefined error(optional any reason); 1931cb0ef41Sopenharmony_ci undefined terminate(); 1941cb0ef41Sopenharmony_ci}; 1951cb0ef41Sopenharmony_ci 1961cb0ef41Sopenharmony_cidictionary QueuingStrategy { 1971cb0ef41Sopenharmony_ci unrestricted double highWaterMark; 1981cb0ef41Sopenharmony_ci QueuingStrategySize size; 1991cb0ef41Sopenharmony_ci}; 2001cb0ef41Sopenharmony_ci 2011cb0ef41Sopenharmony_cicallback QueuingStrategySize = unrestricted double (optional any chunk); 2021cb0ef41Sopenharmony_ci 2031cb0ef41Sopenharmony_cidictionary QueuingStrategyInit { 2041cb0ef41Sopenharmony_ci required unrestricted double highWaterMark; 2051cb0ef41Sopenharmony_ci}; 2061cb0ef41Sopenharmony_ci 2071cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 2081cb0ef41Sopenharmony_ciinterface ByteLengthQueuingStrategy { 2091cb0ef41Sopenharmony_ci constructor(QueuingStrategyInit init); 2101cb0ef41Sopenharmony_ci 2111cb0ef41Sopenharmony_ci readonly attribute unrestricted double highWaterMark; 2121cb0ef41Sopenharmony_ci readonly attribute Function size; 2131cb0ef41Sopenharmony_ci}; 2141cb0ef41Sopenharmony_ci 2151cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,Worklet)] 2161cb0ef41Sopenharmony_ciinterface CountQueuingStrategy { 2171cb0ef41Sopenharmony_ci constructor(QueuingStrategyInit init); 2181cb0ef41Sopenharmony_ci 2191cb0ef41Sopenharmony_ci readonly attribute unrestricted double highWaterMark; 2201cb0ef41Sopenharmony_ci readonly attribute Function size; 2211cb0ef41Sopenharmony_ci}; 2221cb0ef41Sopenharmony_ci 2231cb0ef41Sopenharmony_ciinterface mixin GenericTransformStream { 2241cb0ef41Sopenharmony_ci readonly attribute ReadableStream readable; 2251cb0ef41Sopenharmony_ci readonly attribute WritableStream writable; 2261cb0ef41Sopenharmony_ci}; 227