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

Function addHeapObject

out/cli.cjs:25570–25576  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

25568 return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
25569 }
25570 function addHeapObject(obj) {
25571 if (heap_next === heap.length) heap.push(heap.length + 1);
25572 const idx = heap_next;
25573 heap_next = heap[idx];
25574 heap[idx] = obj;
25575 return idx;
25576 }
25577 var cachedUint32Memory0 = null;
25578 function getUint32Memory0() {
25579 if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {

Callers 5

handleErrorFunction · 0.85
constructorMethod · 0.85
encodeMethod · 0.85
encode_with_unstableMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…