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

Function getStringFromWasm0

out/cli.cjs:25566–25569  ·  view source on GitHub ↗
(ptr, len)

Source from the content-addressed store, hash-verified

25564 var cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true });
25565 cachedTextDecoder.decode();
25566 function getStringFromWasm0(ptr, len) {
25567 ptr = ptr >>> 0;
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;

Callers 2

nameMethod · 0.85

Calls 2

getUint8Memory0Function · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…