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

Callers

nothing calls this directly

Calls 3

readpMethod · 0.45
addMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected