MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / ReadableByteStreamControllerCommitPullIntoDescriptor

Function ReadableByteStreamControllerCommitPullIntoDescriptor

out/cli.cjs:11401–11412  ·  view source on GitHub ↗
(stream4, pullIntoDescriptor)

Source from the content-addressed store, hash-verified

11399 controller._pendingPullIntos = new SimpleQueue();
11400 }
11401 function ReadableByteStreamControllerCommitPullIntoDescriptor(stream4, pullIntoDescriptor) {
11402 let done = false;
11403 if (stream4._state === "closed") {
11404 done = true;
11405 }
11406 const filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);
11407 if (pullIntoDescriptor.readerType === "default") {
11408 ReadableStreamFulfillReadRequest(stream4, filledView, done);
11409 } else {
11410 ReadableStreamFulfillReadIntoRequest(stream4, filledView, done);
11411 }
11412 }
11413 function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor) {
11414 const bytesFilled = pullIntoDescriptor.bytesFilled;
11415 const elementSize = pullIntoDescriptor.elementSize;

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…