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

Function malloc32

g2all/900/lapse.js:1783–1789  ·  view source on GitHub ↗
(sz)

Source from the content-addressed store, hash-verified

1781 }
1782
1783function malloc32(sz) {
1784 var backing = new Uint8Array(0x10000 + sz * 4);
1785 nogc.push(backing);
1786 var ptr = mem.readp(mem.addrof(backing).add(0x10));
1787 ptr.backing = new Uint32Array(backing.buffer);
1788 return ptr;
1789 }
1790
1791function array_from_address(addr, size) {
1792 var og_array = new Uint32Array(0x1000);

Callers

nothing calls this directly

Calls 3

readpMethod · 0.45
addMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected