MCPcopy
hub / github.com/di-sukharev/opencommit / CreateWritableStream

Function CreateWritableStream

out/cli.cjs:12218–12224  ·  view source on GitHub ↗
(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark = 1, sizeAlgorithm = () => 1)

Source from the content-addressed store, hash-verified

12216 return new WritableStreamDefaultWriter2(stream4);
12217 }
12218 function CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark = 1, sizeAlgorithm = () => 1) {
12219 const stream4 = Object.create(WritableStream2.prototype);
12220 InitializeWritableStream(stream4);
12221 const controller = Object.create(WritableStreamDefaultController2.prototype);
12222 SetUpWritableStreamDefaultController(stream4, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm);
12223 return stream4;
12224 }
12225 function InitializeWritableStream(stream4) {
12226 stream4._state = "writable";
12227 stream4._storedError = void 0;

Callers 1

Calls 3

InitializeWritableStreamFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…