1 module spasm.bindings.streams; 2 3 import spasm.types; 4 import spasm.bindings.common; 5 6 @safe: 7 nothrow: 8 9 struct ByteLengthQueuingStrategy { 10 nothrow: 11 spasm.bindings.streams.QueuingStrategy _parent; 12 alias _parent this; 13 this(Handle h) { 14 _parent = .QueuingStrategy(h); 15 } 16 void highWaterMark()(double highWaterMark) { 17 ByteLengthQueuingStrategy_highWaterMark_Set(this._parent, highWaterMark); 18 } 19 auto highWaterMark()() { 20 return ByteLengthQueuingStrategy_highWaterMark_Get(this._parent); 21 } 22 auto size()(scope ref ArrayBufferView chunk) { 23 return ByteLengthQueuingStrategy_size(this._parent, chunk); 24 } 25 } 26 struct CountQueuingStrategy { 27 nothrow: 28 spasm.bindings.streams.QueuingStrategy _parent; 29 alias _parent this; 30 this(Handle h) { 31 _parent = .QueuingStrategy(h); 32 } 33 void highWaterMark()(double highWaterMark) { 34 CountQueuingStrategy_highWaterMark_Set(this._parent, highWaterMark); 35 } 36 auto highWaterMark()() { 37 return CountQueuingStrategy_highWaterMark_Get(this._parent); 38 } 39 auto size(T0)(scope auto ref T0 chunk) { 40 Handle _handle_chunk = getOrCreateHandle(chunk); 41 auto result = CountQueuingStrategy_size(this._parent, _handle_chunk); 42 dropHandle!(T0)(_handle_chunk); 43 return result; 44 } 45 } 46 struct PipeOptions { 47 nothrow: 48 JsHandle handle; 49 alias handle this; 50 this(Handle h) { 51 this.handle = JsHandle(h); 52 } 53 static auto create() { 54 return PipeOptions(spasm_add__object()); 55 } 56 void preventClose(T0)(scope auto ref Optional!(T0) preventClose) if (isTOrPointer!(T0, bool)) { 57 PipeOptions_preventClose_Set(this.handle, !preventClose.empty, preventClose.front); 58 } 59 auto preventClose()() { 60 return PipeOptions_preventClose_Get(this.handle); 61 } 62 void preventAbort(T0)(scope auto ref Optional!(T0) preventAbort) if (isTOrPointer!(T0, bool)) { 63 PipeOptions_preventAbort_Set(this.handle, !preventAbort.empty, preventAbort.front); 64 } 65 auto preventAbort()() { 66 return PipeOptions_preventAbort_Get(this.handle); 67 } 68 void preventCancel(T0)(scope auto ref Optional!(T0) preventCancel) if (isTOrPointer!(T0, bool)) { 69 PipeOptions_preventCancel_Set(this.handle, !preventCancel.empty, preventCancel.front); 70 } 71 auto preventCancel()() { 72 return PipeOptions_preventCancel_Get(this.handle); 73 } 74 } 75 struct QueuingStrategy { 76 nothrow: 77 JsHandle handle; 78 alias handle this; 79 this(Handle h) { 80 this.handle = JsHandle(h); 81 } 82 static auto create() { 83 return QueuingStrategy(spasm_add__object()); 84 } 85 void highWaterMark(T0)(scope auto ref Optional!(T0) highWaterMark) if (isTOrPointer!(T0, double)) { 86 QueuingStrategy_highWaterMark_Set(this.handle, !highWaterMark.empty, highWaterMark.front); 87 } 88 auto highWaterMark()() { 89 return QueuingStrategy_highWaterMark_Get(this.handle); 90 } 91 void size(T0)(scope auto ref Optional!(T0) size) if (isTOrPointer!(T0, QueuingStrategySizeCallback)) { 92 QueuingStrategy_size_Set(this.handle, !size.empty, size.front); 93 } 94 auto size()() { 95 return QueuingStrategy_size_Get(this.handle); 96 } 97 } 98 alias QueuingStrategySizeCallback = double delegate(Any); 99 struct ReadableByteStreamController { 100 nothrow: 101 JsHandle handle; 102 alias handle this; 103 this(Handle h) { 104 this.handle = JsHandle(h); 105 } 106 auto byobRequest()() { 107 return ReadableStreamBYOBRequest(ReadableByteStreamController_byobRequest_Get(this.handle)); 108 } 109 auto desiredSize()() { 110 return ReadableByteStreamController_desiredSize_Get(this.handle); 111 } 112 void close()() { 113 ReadableByteStreamController_close(this.handle); 114 } 115 void enqueue()(scope ref ArrayBufferView chunk) { 116 ReadableByteStreamController_enqueue(this.handle, chunk); 117 } 118 void error(T0)(scope auto ref T0 error) { 119 Handle _handle_error = getOrCreateHandle(error); 120 ReadableByteStreamController_error(this.handle, _handle_error); 121 dropHandle!(T0)(_handle_error); 122 } 123 void error()() { 124 ReadableByteStreamController_error_0(this.handle); 125 } 126 } 127 alias ReadableByteStreamControllerCallback = Any delegate(ReadableByteStreamController); 128 struct ReadableStream { 129 nothrow: 130 JsHandle handle; 131 alias handle this; 132 this(Handle h) { 133 this.handle = JsHandle(h); 134 } 135 auto locked()() { 136 return ReadableStream_locked_Get(this.handle); 137 } 138 auto cancel(T0)(scope auto ref T0 reason) { 139 Handle _handle_reason = getOrCreateHandle(reason); 140 auto result = Promise!(void)(ReadableStream_cancel(this.handle, _handle_reason)); 141 dropHandle!(T0)(_handle_reason); 142 return result; 143 } 144 auto cancel()() { 145 return Promise!(void)(ReadableStream_cancel_0(this.handle)); 146 } 147 auto getReader(T0)(scope auto ref T0 options) { 148 Handle _handle_options = getOrCreateHandle(options); 149 auto result = ReadableStreamBYOBReader(ReadableStream_getReader__Handle(this.handle, _handle_options)); 150 dropHandle!(T0)(_handle_options); 151 return result; 152 } 153 auto getReader()() { 154 return ReadableStreamDefaultReader(ReadableStream_getReader__(this.handle)); 155 } 156 auto pipeThrough(T0)(scope auto ref T0 pair, scope ref PipeOptions options) { 157 Handle _handle_pair = getOrCreateHandle(pair); 158 auto result = Any(ReadableStream_pipeThrough(this.handle, _handle_pair, options.handle)); 159 dropHandle!(T0)(_handle_pair); 160 return result; 161 } 162 auto pipeThrough(T0)(scope auto ref T0 pair) { 163 Handle _handle_pair = getOrCreateHandle(pair); 164 auto result = Any(ReadableStream_pipeThrough_0(this.handle, _handle_pair)); 165 dropHandle!(T0)(_handle_pair); 166 return result; 167 } 168 auto pipeTo()(scope ref WritableStream dest, scope ref PipeOptions options) { 169 return Promise!(void)(ReadableStream_pipeTo(this.handle, dest.handle, options.handle)); 170 } 171 auto pipeTo()(scope ref WritableStream dest) { 172 return Promise!(void)(ReadableStream_pipeTo_0(this.handle, dest.handle)); 173 } 174 auto tee()() { 175 return Sequence!(ReadableStream)(ReadableStream_tee(this.handle)); 176 } 177 } 178 struct ReadableStreamBYOBReader { 179 nothrow: 180 JsHandle handle; 181 alias handle this; 182 this(Handle h) { 183 this.handle = JsHandle(h); 184 } 185 auto closed()() { 186 return Promise!(void)(ReadableStreamBYOBReader_closed_Get(this.handle)); 187 } 188 auto cancel(T0)(scope auto ref T0 reason) { 189 Handle _handle_reason = getOrCreateHandle(reason); 190 auto result = Promise!(void)(ReadableStreamBYOBReader_cancel(this.handle, _handle_reason)); 191 dropHandle!(T0)(_handle_reason); 192 return result; 193 } 194 auto cancel()() { 195 return Promise!(void)(ReadableStreamBYOBReader_cancel_0(this.handle)); 196 } 197 auto read()(scope ref ArrayBufferView view) { 198 return Promise!(ReadableStreamReadResult)(ReadableStreamBYOBReader_read(this.handle, view)); 199 } 200 void releaseLock()() { 201 ReadableStreamBYOBReader_releaseLock(this.handle); 202 } 203 } 204 struct ReadableStreamBYOBRequest { 205 nothrow: 206 JsHandle handle; 207 alias handle this; 208 this(Handle h) { 209 this.handle = JsHandle(h); 210 } 211 auto view()() { 212 return ReadableStreamBYOBRequest_view_Get(this.handle); 213 } 214 void respond()(uint bytesWritten) { 215 ReadableStreamBYOBRequest_respond(this.handle, bytesWritten); 216 } 217 void respondWithNewView()(scope ref ArrayBufferView view) { 218 ReadableStreamBYOBRequest_respondWithNewView(this.handle, view); 219 } 220 } 221 struct ReadableStreamDefaultController { 222 nothrow: 223 JsHandle handle; 224 alias handle this; 225 this(Handle h) { 226 this.handle = JsHandle(h); 227 } 228 auto desiredSize()() { 229 return ReadableStreamDefaultController_desiredSize_Get(this.handle); 230 } 231 void close()() { 232 ReadableStreamDefaultController_close(this.handle); 233 } 234 void enqueue(T0)(scope auto ref T0 chunk) { 235 Handle _handle_chunk = getOrCreateHandle(chunk); 236 ReadableStreamDefaultController_enqueue(this.handle, _handle_chunk); 237 dropHandle!(T0)(_handle_chunk); 238 } 239 void error(T0)(scope auto ref T0 error) { 240 Handle _handle_error = getOrCreateHandle(error); 241 ReadableStreamDefaultController_error(this.handle, _handle_error); 242 dropHandle!(T0)(_handle_error); 243 } 244 void error()() { 245 ReadableStreamDefaultController_error_0(this.handle); 246 } 247 } 248 alias ReadableStreamDefaultControllerCallback = Any delegate(ReadableStreamDefaultController); 249 struct ReadableStreamDefaultReader { 250 nothrow: 251 JsHandle handle; 252 alias handle this; 253 this(Handle h) { 254 this.handle = JsHandle(h); 255 } 256 auto closed()() { 257 return Promise!(void)(ReadableStreamDefaultReader_closed_Get(this.handle)); 258 } 259 auto cancel(T0)(scope auto ref T0 reason) { 260 Handle _handle_reason = getOrCreateHandle(reason); 261 auto result = Promise!(void)(ReadableStreamDefaultReader_cancel(this.handle, _handle_reason)); 262 dropHandle!(T0)(_handle_reason); 263 return result; 264 } 265 auto cancel()() { 266 return Promise!(void)(ReadableStreamDefaultReader_cancel_0(this.handle)); 267 } 268 auto read()() { 269 return Promise!(ReadableStreamReadResult)(ReadableStreamDefaultReader_read(this.handle)); 270 } 271 void releaseLock()() { 272 ReadableStreamDefaultReader_releaseLock(this.handle); 273 } 274 } 275 alias ReadableStreamErrorCallback = Any delegate(Any); 276 struct ReadableStreamReadResult { 277 nothrow: 278 JsHandle handle; 279 alias handle this; 280 this(Handle h) { 281 this.handle = JsHandle(h); 282 } 283 void done()(bool done) { 284 ReadableStreamReadResult_done_Set(this.handle, done); 285 } 286 auto done()() { 287 return ReadableStreamReadResult_done_Get(this.handle); 288 } 289 void value()(scope ref Any value) { 290 ReadableStreamReadResult_value_Set(this.handle, value.handle); 291 } 292 auto value()() { 293 return Any(ReadableStreamReadResult_value_Get(this.handle)); 294 } 295 } 296 struct TransformStream { 297 nothrow: 298 JsHandle handle; 299 alias handle this; 300 this(Handle h) { 301 this.handle = JsHandle(h); 302 } 303 auto readable()() { 304 return ReadableStream(TransformStream_readable_Get(this.handle)); 305 } 306 auto writable()() { 307 return WritableStream(TransformStream_writable_Get(this.handle)); 308 } 309 } 310 struct TransformStreamDefaultController { 311 nothrow: 312 JsHandle handle; 313 alias handle this; 314 this(Handle h) { 315 this.handle = JsHandle(h); 316 } 317 auto desiredSize()() { 318 return TransformStreamDefaultController_desiredSize_Get(this.handle); 319 } 320 void enqueue(T0)(scope auto ref T0 chunk) { 321 Handle _handle_chunk = getOrCreateHandle(chunk); 322 TransformStreamDefaultController_enqueue(this.handle, _handle_chunk); 323 dropHandle!(T0)(_handle_chunk); 324 } 325 void error(T0)(scope auto ref T0 reason) { 326 Handle _handle_reason = getOrCreateHandle(reason); 327 TransformStreamDefaultController_error(this.handle, _handle_reason); 328 dropHandle!(T0)(_handle_reason); 329 } 330 void error()() { 331 TransformStreamDefaultController_error_0(this.handle); 332 } 333 void terminate()() { 334 TransformStreamDefaultController_terminate(this.handle); 335 } 336 } 337 alias TransformStreamDefaultControllerCallback = Any delegate(TransformStreamDefaultController); 338 alias TransformStreamDefaultControllerTransformCallback = Any delegate(Any, TransformStreamDefaultController); 339 struct Transformer { 340 nothrow: 341 JsHandle handle; 342 alias handle this; 343 this(Handle h) { 344 this.handle = JsHandle(h); 345 } 346 static auto create() { 347 return Transformer(spasm_add__object()); 348 } 349 void start(T0)(scope auto ref Optional!(T0) start) if (isTOrPointer!(T0, TransformStreamDefaultControllerCallback)) { 350 Transformer_start_Set(this.handle, !start.empty, start.front); 351 } 352 auto start()() { 353 return Transformer_start_Get(this.handle); 354 } 355 void transform(T0)(scope auto ref Optional!(T0) transform) if (isTOrPointer!(T0, TransformStreamDefaultControllerTransformCallback)) { 356 Transformer_transform_Set(this.handle, !transform.empty, transform.front); 357 } 358 auto transform()() { 359 return Transformer_transform_Get(this.handle); 360 } 361 void flush(T0)(scope auto ref Optional!(T0) flush) if (isTOrPointer!(T0, TransformStreamDefaultControllerCallback)) { 362 Transformer_flush_Set(this.handle, !flush.empty, flush.front); 363 } 364 auto flush()() { 365 return Transformer_flush_Get(this.handle); 366 } 367 void readableType(T0)(scope auto ref T0 readableType) { 368 Handle _handle_readableType = getOrCreateHandle(readableType); 369 Transformer_readableType_Set(this.handle, _handle_readableType); 370 dropHandle!(T0)(_handle_readableType); 371 } 372 auto readableType()() { 373 return Any(Transformer_readableType_Get(this.handle)); 374 } 375 void writableType(T0)(scope auto ref T0 writableType) { 376 Handle _handle_writableType = getOrCreateHandle(writableType); 377 Transformer_writableType_Set(this.handle, _handle_writableType); 378 dropHandle!(T0)(_handle_writableType); 379 } 380 auto writableType()() { 381 return Any(Transformer_writableType_Get(this.handle)); 382 } 383 } 384 struct UnderlyingByteSource { 385 nothrow: 386 JsHandle handle; 387 alias handle this; 388 this(Handle h) { 389 this.handle = JsHandle(h); 390 } 391 static auto create() { 392 return UnderlyingByteSource(spasm_add__object()); 393 } 394 void start(T0)(scope auto ref Optional!(T0) start) if (isTOrPointer!(T0, ReadableByteStreamControllerCallback)) { 395 UnderlyingByteSource_start_Set(this.handle, !start.empty, start.front); 396 } 397 auto start()() { 398 return UnderlyingByteSource_start_Get(this.handle); 399 } 400 void pull(T0)(scope auto ref Optional!(T0) pull) if (isTOrPointer!(T0, ReadableByteStreamControllerCallback)) { 401 UnderlyingByteSource_pull_Set(this.handle, !pull.empty, pull.front); 402 } 403 auto pull()() { 404 return UnderlyingByteSource_pull_Get(this.handle); 405 } 406 void cancel(T0)(scope auto ref Optional!(T0) cancel) if (isTOrPointer!(T0, ReadableStreamErrorCallback)) { 407 UnderlyingByteSource_cancel_Set(this.handle, !cancel.empty, cancel.front); 408 } 409 auto cancel()() { 410 return UnderlyingByteSource_cancel_Get(this.handle); 411 } 412 void type()(string type) { 413 UnderlyingByteSource_type_Set(this.handle, type); 414 } 415 auto type()() { 416 return UnderlyingByteSource_type_Get(this.handle); 417 } 418 void autoAllocateChunkSize(T0)(scope auto ref Optional!(T0) autoAllocateChunkSize) if (isTOrPointer!(T0, uint)) { 419 UnderlyingByteSource_autoAllocateChunkSize_Set(this.handle, !autoAllocateChunkSize.empty, autoAllocateChunkSize.front); 420 } 421 auto autoAllocateChunkSize()() { 422 return UnderlyingByteSource_autoAllocateChunkSize_Get(this.handle); 423 } 424 } 425 struct UnderlyingSink { 426 nothrow: 427 JsHandle handle; 428 alias handle this; 429 this(Handle h) { 430 this.handle = JsHandle(h); 431 } 432 static auto create() { 433 return UnderlyingSink(spasm_add__object()); 434 } 435 void start(T0)(scope auto ref Optional!(T0) start) if (isTOrPointer!(T0, WritableStreamDefaultControllerStartCallback)) { 436 UnderlyingSink_start_Set(this.handle, !start.empty, start.front); 437 } 438 auto start()() { 439 return UnderlyingSink_start_Get(this.handle); 440 } 441 void write(T0)(scope auto ref Optional!(T0) write) if (isTOrPointer!(T0, WritableStreamDefaultControllerWriteCallback)) { 442 UnderlyingSink_write_Set(this.handle, !write.empty, write.front); 443 } 444 auto write()() { 445 return UnderlyingSink_write_Get(this.handle); 446 } 447 void close(T0)(scope auto ref Optional!(T0) close) if (isTOrPointer!(T0, WritableStreamDefaultControllerCloseCallback)) { 448 UnderlyingSink_close_Set(this.handle, !close.empty, close.front); 449 } 450 auto close()() { 451 return UnderlyingSink_close_Get(this.handle); 452 } 453 void abort(T0)(scope auto ref Optional!(T0) abort) if (isTOrPointer!(T0, WritableStreamErrorCallback)) { 454 UnderlyingSink_abort_Set(this.handle, !abort.empty, abort.front); 455 } 456 auto abort()() { 457 return UnderlyingSink_abort_Get(this.handle); 458 } 459 void type(T0)(scope auto ref T0 type) { 460 Handle _handle_type = getOrCreateHandle(type); 461 UnderlyingSink_type_Set(this.handle, _handle_type); 462 dropHandle!(T0)(_handle_type); 463 } 464 auto type()() { 465 return Any(UnderlyingSink_type_Get(this.handle)); 466 } 467 } 468 struct UnderlyingSource { 469 nothrow: 470 JsHandle handle; 471 alias handle this; 472 this(Handle h) { 473 this.handle = JsHandle(h); 474 } 475 static auto create() { 476 return UnderlyingSource(spasm_add__object()); 477 } 478 void start(T0)(scope auto ref Optional!(T0) start) if (isTOrPointer!(T0, ReadableStreamDefaultControllerCallback)) { 479 UnderlyingSource_start_Set(this.handle, !start.empty, start.front); 480 } 481 auto start()() { 482 return UnderlyingSource_start_Get(this.handle); 483 } 484 void pull(T0)(scope auto ref Optional!(T0) pull) if (isTOrPointer!(T0, ReadableStreamDefaultControllerCallback)) { 485 UnderlyingSource_pull_Set(this.handle, !pull.empty, pull.front); 486 } 487 auto pull()() { 488 return UnderlyingSource_pull_Get(this.handle); 489 } 490 void cancel(T0)(scope auto ref Optional!(T0) cancel) if (isTOrPointer!(T0, ReadableStreamErrorCallback)) { 491 UnderlyingSource_cancel_Set(this.handle, !cancel.empty, cancel.front); 492 } 493 auto cancel()() { 494 return UnderlyingSource_cancel_Get(this.handle); 495 } 496 void type(T0)(scope auto ref T0 type) { 497 Handle _handle_type = getOrCreateHandle(type); 498 UnderlyingSource_type_Set(this.handle, _handle_type); 499 dropHandle!(T0)(_handle_type); 500 } 501 auto type()() { 502 return Any(UnderlyingSource_type_Get(this.handle)); 503 } 504 } 505 struct WritableStream { 506 nothrow: 507 JsHandle handle; 508 alias handle this; 509 this(Handle h) { 510 this.handle = JsHandle(h); 511 } 512 auto locked()() { 513 return WritableStream_locked_Get(this.handle); 514 } 515 auto abort(T0)(scope auto ref T0 reason) { 516 Handle _handle_reason = getOrCreateHandle(reason); 517 auto result = Promise!(void)(WritableStream_abort(this.handle, _handle_reason)); 518 dropHandle!(T0)(_handle_reason); 519 return result; 520 } 521 auto abort()() { 522 return Promise!(void)(WritableStream_abort_0(this.handle)); 523 } 524 auto getWriter()() { 525 return WritableStreamDefaultWriter(WritableStream_getWriter(this.handle)); 526 } 527 } 528 struct WritableStreamDefaultController { 529 nothrow: 530 JsHandle handle; 531 alias handle this; 532 this(Handle h) { 533 this.handle = JsHandle(h); 534 } 535 void error(T0)(scope auto ref T0 error) { 536 Handle _handle_error = getOrCreateHandle(error); 537 WritableStreamDefaultController_error(this.handle, _handle_error); 538 dropHandle!(T0)(_handle_error); 539 } 540 void error()() { 541 WritableStreamDefaultController_error_0(this.handle); 542 } 543 } 544 alias WritableStreamDefaultControllerCloseCallback = Any delegate(); 545 alias WritableStreamDefaultControllerStartCallback = Any delegate(WritableStreamDefaultController); 546 alias WritableStreamDefaultControllerWriteCallback = Any delegate(Any, WritableStreamDefaultController); 547 struct WritableStreamDefaultWriter { 548 nothrow: 549 JsHandle handle; 550 alias handle this; 551 this(Handle h) { 552 this.handle = JsHandle(h); 553 } 554 auto closed()() { 555 return Promise!(void)(WritableStreamDefaultWriter_closed_Get(this.handle)); 556 } 557 auto desiredSize()() { 558 return WritableStreamDefaultWriter_desiredSize_Get(this.handle); 559 } 560 auto ready()() { 561 return Promise!(void)(WritableStreamDefaultWriter_ready_Get(this.handle)); 562 } 563 auto abort(T0)(scope auto ref T0 reason) { 564 Handle _handle_reason = getOrCreateHandle(reason); 565 auto result = Promise!(void)(WritableStreamDefaultWriter_abort(this.handle, _handle_reason)); 566 dropHandle!(T0)(_handle_reason); 567 return result; 568 } 569 auto abort()() { 570 return Promise!(void)(WritableStreamDefaultWriter_abort_0(this.handle)); 571 } 572 auto close()() { 573 return Promise!(void)(WritableStreamDefaultWriter_close(this.handle)); 574 } 575 void releaseLock()() { 576 WritableStreamDefaultWriter_releaseLock(this.handle); 577 } 578 auto write(T0)(scope auto ref T0 chunk) { 579 Handle _handle_chunk = getOrCreateHandle(chunk); 580 auto result = Promise!(void)(WritableStreamDefaultWriter_write(this.handle, _handle_chunk)); 581 dropHandle!(T0)(_handle_chunk); 582 return result; 583 } 584 } 585 alias WritableStreamErrorCallback = Any delegate(Any); 586 587 588 extern (C) void ByteLengthQueuingStrategy_highWaterMark_Set(Handle, double); 589 extern (C) double ByteLengthQueuingStrategy_highWaterMark_Get(Handle); 590 extern (C) double ByteLengthQueuingStrategy_size(Handle, scope ref ArrayBufferView); 591 extern (C) void CountQueuingStrategy_highWaterMark_Set(Handle, double); 592 extern (C) double CountQueuingStrategy_highWaterMark_Get(Handle); 593 extern (C) double CountQueuingStrategy_size(Handle, Handle); 594 extern (C) void PipeOptions_preventClose_Set(Handle, bool, bool); 595 extern (C) Optional!(bool) PipeOptions_preventClose_Get(Handle); 596 extern (C) void PipeOptions_preventAbort_Set(Handle, bool, bool); 597 extern (C) Optional!(bool) PipeOptions_preventAbort_Get(Handle); 598 extern (C) void PipeOptions_preventCancel_Set(Handle, bool, bool); 599 extern (C) Optional!(bool) PipeOptions_preventCancel_Get(Handle); 600 extern (C) void QueuingStrategy_highWaterMark_Set(Handle, bool, double); 601 extern (C) Optional!(double) QueuingStrategy_highWaterMark_Get(Handle); 602 extern (C) void QueuingStrategy_size_Set(Handle, bool, QueuingStrategySizeCallback); 603 extern (C) Optional!(QueuingStrategySizeCallback) QueuingStrategy_size_Get(Handle); 604 extern (C) Handle ReadableByteStreamController_byobRequest_Get(Handle); 605 extern (C) Optional!(double) ReadableByteStreamController_desiredSize_Get(Handle); 606 extern (C) void ReadableByteStreamController_close(Handle); 607 extern (C) void ReadableByteStreamController_enqueue(Handle, scope ref ArrayBufferView); 608 extern (C) void ReadableByteStreamController_error(Handle, Handle); 609 extern (C) void ReadableByteStreamController_error_0(Handle); 610 extern (C) bool ReadableStream_locked_Get(Handle); 611 extern (C) Handle ReadableStream_cancel(Handle, Handle); 612 extern (C) Handle ReadableStream_cancel_0(Handle); 613 extern (C) Handle ReadableStream_getReader__Handle(Handle, Handle); 614 extern (C) Handle ReadableStream_getReader__(Handle); 615 extern (C) Handle ReadableStream_pipeThrough(Handle, Handle, Handle); 616 extern (C) Handle ReadableStream_pipeThrough_0(Handle, Handle); 617 extern (C) Handle ReadableStream_pipeTo(Handle, Handle, Handle); 618 extern (C) Handle ReadableStream_pipeTo_0(Handle, Handle); 619 extern (C) Handle ReadableStream_tee(Handle); 620 extern (C) Handle ReadableStreamBYOBReader_closed_Get(Handle); 621 extern (C) Handle ReadableStreamBYOBReader_cancel(Handle, Handle); 622 extern (C) Handle ReadableStreamBYOBReader_cancel_0(Handle); 623 extern (C) Handle ReadableStreamBYOBReader_read(Handle, scope ref ArrayBufferView); 624 extern (C) void ReadableStreamBYOBReader_releaseLock(Handle); 625 extern (C) ArrayBufferView ReadableStreamBYOBRequest_view_Get(Handle); 626 extern (C) void ReadableStreamBYOBRequest_respond(Handle, uint); 627 extern (C) void ReadableStreamBYOBRequest_respondWithNewView(Handle, scope ref ArrayBufferView); 628 extern (C) Optional!(double) ReadableStreamDefaultController_desiredSize_Get(Handle); 629 extern (C) void ReadableStreamDefaultController_close(Handle); 630 extern (C) void ReadableStreamDefaultController_enqueue(Handle, Handle); 631 extern (C) void ReadableStreamDefaultController_error(Handle, Handle); 632 extern (C) void ReadableStreamDefaultController_error_0(Handle); 633 extern (C) Handle ReadableStreamDefaultReader_closed_Get(Handle); 634 extern (C) Handle ReadableStreamDefaultReader_cancel(Handle, Handle); 635 extern (C) Handle ReadableStreamDefaultReader_cancel_0(Handle); 636 extern (C) Handle ReadableStreamDefaultReader_read(Handle); 637 extern (C) void ReadableStreamDefaultReader_releaseLock(Handle); 638 extern (C) void ReadableStreamReadResult_done_Set(Handle, bool); 639 extern (C) bool ReadableStreamReadResult_done_Get(Handle); 640 extern (C) void ReadableStreamReadResult_value_Set(Handle, Handle); 641 extern (C) Handle ReadableStreamReadResult_value_Get(Handle); 642 extern (C) Handle TransformStream_readable_Get(Handle); 643 extern (C) Handle TransformStream_writable_Get(Handle); 644 extern (C) Optional!(double) TransformStreamDefaultController_desiredSize_Get(Handle); 645 extern (C) void TransformStreamDefaultController_enqueue(Handle, Handle); 646 extern (C) void TransformStreamDefaultController_error(Handle, Handle); 647 extern (C) void TransformStreamDefaultController_error_0(Handle); 648 extern (C) void TransformStreamDefaultController_terminate(Handle); 649 extern (C) void Transformer_start_Set(Handle, bool, TransformStreamDefaultControllerCallback); 650 extern (C) Optional!(TransformStreamDefaultControllerCallback) Transformer_start_Get(Handle); 651 extern (C) void Transformer_transform_Set(Handle, bool, TransformStreamDefaultControllerTransformCallback); 652 extern (C) Optional!(TransformStreamDefaultControllerTransformCallback) Transformer_transform_Get(Handle); 653 extern (C) void Transformer_flush_Set(Handle, bool, TransformStreamDefaultControllerCallback); 654 extern (C) Optional!(TransformStreamDefaultControllerCallback) Transformer_flush_Get(Handle); 655 extern (C) void Transformer_readableType_Set(Handle, Handle); 656 extern (C) Handle Transformer_readableType_Get(Handle); 657 extern (C) void Transformer_writableType_Set(Handle, Handle); 658 extern (C) Handle Transformer_writableType_Get(Handle); 659 extern (C) void UnderlyingByteSource_start_Set(Handle, bool, ReadableByteStreamControllerCallback); 660 extern (C) Optional!(ReadableByteStreamControllerCallback) UnderlyingByteSource_start_Get(Handle); 661 extern (C) void UnderlyingByteSource_pull_Set(Handle, bool, ReadableByteStreamControllerCallback); 662 extern (C) Optional!(ReadableByteStreamControllerCallback) UnderlyingByteSource_pull_Get(Handle); 663 extern (C) void UnderlyingByteSource_cancel_Set(Handle, bool, ReadableStreamErrorCallback); 664 extern (C) Optional!(ReadableStreamErrorCallback) UnderlyingByteSource_cancel_Get(Handle); 665 extern (C) void UnderlyingByteSource_type_Set(Handle, string); 666 extern (C) string UnderlyingByteSource_type_Get(Handle); 667 extern (C) void UnderlyingByteSource_autoAllocateChunkSize_Set(Handle, bool, uint); 668 extern (C) Optional!(uint) UnderlyingByteSource_autoAllocateChunkSize_Get(Handle); 669 extern (C) void UnderlyingSink_start_Set(Handle, bool, WritableStreamDefaultControllerStartCallback); 670 extern (C) Optional!(WritableStreamDefaultControllerStartCallback) UnderlyingSink_start_Get(Handle); 671 extern (C) void UnderlyingSink_write_Set(Handle, bool, WritableStreamDefaultControllerWriteCallback); 672 extern (C) Optional!(WritableStreamDefaultControllerWriteCallback) UnderlyingSink_write_Get(Handle); 673 extern (C) void UnderlyingSink_close_Set(Handle, bool, WritableStreamDefaultControllerCloseCallback); 674 extern (C) Optional!(WritableStreamDefaultControllerCloseCallback) UnderlyingSink_close_Get(Handle); 675 extern (C) void UnderlyingSink_abort_Set(Handle, bool, WritableStreamErrorCallback); 676 extern (C) Optional!(WritableStreamErrorCallback) UnderlyingSink_abort_Get(Handle); 677 extern (C) void UnderlyingSink_type_Set(Handle, Handle); 678 extern (C) Handle UnderlyingSink_type_Get(Handle); 679 extern (C) void UnderlyingSource_start_Set(Handle, bool, ReadableStreamDefaultControllerCallback); 680 extern (C) Optional!(ReadableStreamDefaultControllerCallback) UnderlyingSource_start_Get(Handle); 681 extern (C) void UnderlyingSource_pull_Set(Handle, bool, ReadableStreamDefaultControllerCallback); 682 extern (C) Optional!(ReadableStreamDefaultControllerCallback) UnderlyingSource_pull_Get(Handle); 683 extern (C) void UnderlyingSource_cancel_Set(Handle, bool, ReadableStreamErrorCallback); 684 extern (C) Optional!(ReadableStreamErrorCallback) UnderlyingSource_cancel_Get(Handle); 685 extern (C) void UnderlyingSource_type_Set(Handle, Handle); 686 extern (C) Handle UnderlyingSource_type_Get(Handle); 687 extern (C) bool WritableStream_locked_Get(Handle); 688 extern (C) Handle WritableStream_abort(Handle, Handle); 689 extern (C) Handle WritableStream_abort_0(Handle); 690 extern (C) Handle WritableStream_getWriter(Handle); 691 extern (C) void WritableStreamDefaultController_error(Handle, Handle); 692 extern (C) void WritableStreamDefaultController_error_0(Handle); 693 extern (C) Handle WritableStreamDefaultWriter_closed_Get(Handle); 694 extern (C) Optional!(double) WritableStreamDefaultWriter_desiredSize_Get(Handle); 695 extern (C) Handle WritableStreamDefaultWriter_ready_Get(Handle); 696 extern (C) Handle WritableStreamDefaultWriter_abort(Handle, Handle); 697 extern (C) Handle WritableStreamDefaultWriter_abort_0(Handle); 698 extern (C) Handle WritableStreamDefaultWriter_close(Handle); 699 extern (C) void WritableStreamDefaultWriter_releaseLock(Handle); 700 extern (C) Handle WritableStreamDefaultWriter_write(Handle, Handle);