MCPcopy
hub / github.com/vercel/next.js / addHeapObject

Function addHeapObject

packages/next/src/compiled/@vercel/og/index.edge.js:19685–19692  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

19683heap.push(void 0, null, true, false);
19684var heap_next = heap.length;
19685function addHeapObject(obj) {
19686 if (heap_next === heap.length)
19687 heap.push(heap.length + 1);
19688 const idx = heap_next;
19689 heap_next = heap[idx];
19690 heap[idx] = obj;
19691 return idx;
19692}
19693function getObject(idx) {
19694 return heap[idx];
19695}

Callers 3

constructorMethod · 0.70
resolveImageMethod · 0.70
getImportsFunction · 0.70

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected