MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / malloc32

Function malloc32

g2all/700/lapse.js:1790–1796  ·  view source on GitHub ↗
(sz)

Source from the content-addressed store, hash-verified

1788 close(sd);
1789 }
1790}
1791
1792// ChendoChap's from pOOBs4
1793function malloc(sz) {
1794 const backing = new Uint8Array(0x10000 + sz);
1795 nogc.push(backing);
1796 const ptr = mem.readp(mem.addrof(backing).add(0x10));
1797 ptr.backing = backing;
1798 return ptr;
1799}

Callers

nothing calls this directly

Calls 3

readpMethod · 0.45
addMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected