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

Function ReadableByteStreamControllerGetBYOBRequest

out/cli.cjs:11711–11720  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

11709 readRequest._chunkSteps(view);
11710 }
11711 function ReadableByteStreamControllerGetBYOBRequest(controller) {
11712 if (controller._byobRequest === null && controller._pendingPullIntos.length > 0) {
11713 const firstDescriptor = controller._pendingPullIntos.peek();
11714 const view = new Uint8Array(firstDescriptor.buffer, firstDescriptor.byteOffset + firstDescriptor.bytesFilled, firstDescriptor.byteLength - firstDescriptor.bytesFilled);
11715 const byobRequest = Object.create(ReadableStreamBYOBRequest2.prototype);
11716 SetUpReadableStreamBYOBRequest(byobRequest, controller, view);
11717 controller._byobRequest = byobRequest;
11718 }
11719 return controller._byobRequest;
11720 }
11721 function ReadableByteStreamControllerGetDesiredSize(controller) {
11722 const state2 = controller._controlledReadableByteStream._state;
11723 if (state2 === "errored") {

Callers 3

byobRequestMethod · 0.85
pull1AlgorithmFunction · 0.85
pull2AlgorithmFunction · 0.85

Calls 3

peekMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…