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

Function malloc

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

Source from the content-addressed store, hash-verified

1779
1780// ChendoChap's from pOOBs4
1781function malloc(sz) {
1782 const backing = new Uint8Array(0x10000 + sz);
1783 nogc.push(backing);
1784 const ptr = mem.readp(mem.addrof(backing).add(0x10));
1785 ptr.backing = backing;
1786 return ptr;
1787}
1788
1789// ChendoChap's from pOOBs4
1790function malloc32(sz) {

Callers

nothing calls this directly

Calls 3

readpMethod · 0.45
addMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected