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

Function WritableStreamDefaultControllerGetChunkSize

out/cli.cjs:12813–12820  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

12811 WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);
12812 }
12813 function WritableStreamDefaultControllerGetChunkSize(controller, chunk) {
12814 try {
12815 return controller._strategySizeAlgorithm(chunk);
12816 } catch (chunkSizeE) {
12817 WritableStreamDefaultControllerErrorIfNeeded(controller, chunkSizeE);
12818 return 1;
12819 }
12820 }
12821 function WritableStreamDefaultControllerGetDesiredSize(controller) {
12822 return controller._strategyHWM - controller._queueTotalSize;
12823 }

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…