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

Function EnqueueValueWithSize

out/cli.cjs:11134–11140  ·  view source on GitHub ↗
(container, value, size)

Source from the content-addressed store, hash-verified

11132 return pair.value;
11133 }
11134 function EnqueueValueWithSize(container, value, size) {
11135 if (!IsNonNegativeNumber(size) || size === Infinity) {
11136 throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
11137 }
11138 container._queue.push({ value, size });
11139 container._queueTotalSize += size;
11140 }
11141 function PeekQueueValue(container) {
11142 const pair = container._queue.peek();
11143 return pair.value;

Calls 2

IsNonNegativeNumberFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…