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

Method enqueue

out/cli.cjs:8387–8417  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

8385 }(this);
8386 }
8387 enqueue(e3) {
8388 if (!de(this)) throw Ae("enqueue");
8389 if ($5(e3, 1, "enqueue"), !ArrayBuffer.isView(e3)) throw new TypeError("chunk must be an array buffer view");
8390 if (0 === e3.byteLength) throw new TypeError("chunk must have non-zero byteLength");
8391 if (0 === e3.buffer.byteLength) throw new TypeError("chunk's buffer must have non-zero byteLength");
8392 if (this._closeRequested) throw new TypeError("stream is closed or draining");
8393 const t2 = this._controlledReadableByteStream._state;
8394 if ("readable" !== t2) throw new TypeError(`The stream (in ${t2} state) is not in the readable state and cannot be enqueued to`);
8395 !function(e4, t3) {
8396 const r3 = e4._controlledReadableByteStream;
8397 if (e4._closeRequested || "readable" !== r3._state) return;
8398 const o3 = t3.buffer, n2 = t3.byteOffset, a4 = t3.byteLength, i3 = o3;
8399 if (e4._pendingPullIntos.length > 0) {
8400 const t4 = e4._pendingPullIntos.peek();
8401 t4.buffer, 0, Re(e4), t4.buffer = t4.buffer, "none" === t4.readerType && ge(e4, t4);
8402 }
8403 if (J5(r3)) if (function(e5) {
8404 const t4 = e5._controlledReadableByteStream._reader;
8405 for (; t4._readRequests.length > 0; ) {
8406 if (0 === e5._queueTotalSize) return;
8407 We(e5, t4._readRequests.shift());
8408 }
8409 }(e4), 0 === X4(r3)) me(e4, i3, n2, a4);
8410 else {
8411 e4._pendingPullIntos.length > 0 && Ce(e4);
8412 G6(r3, new Uint8Array(i3, n2, a4), false);
8413 }
8414 else Le(r3) ? (me(e4, i3, n2, a4), Te(e4)) : me(e4, i3, n2, a4);
8415 be(e4);
8416 }(this, e3);
8417 }
8418 error(e3) {
8419 if (!de(this)) throw Ae("error");
8420 Pe(this, e3);

Callers 12

g5Function · 0.45
w7Function · 0.45
m5Function · 0.45
_rFunction · 0.45
pullMethod · 0.45
startFunction · 0.45
pullFunction · 0.45
httpNetworkFetchFunction · 0.45
pullMethod · 0.45
getOaiSSEsFunction · 0.45
pumpFunction · 0.45

Calls 15

deFunction · 0.85
AeFunction · 0.85
$5Function · 0.85
ReFunction · 0.85
geFunction · 0.85
J5Function · 0.85
WeFunction · 0.85
X4Function · 0.85
meFunction · 0.85
CeFunction · 0.85
G6Function · 0.85
LeFunction · 0.85

Tested by

no test coverage detected