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

Function malloc

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

Source from the content-addressed store, hash-verified

1773}
1774
1775function malloc(sz) {
1776 var backing = new Uint8Array(0x10000 + sz);
1777 nogc.push(backing);
1778 var ptr = mem.readp(mem.addrof(backing).add(0x10));
1779 ptr.backing = backing;
1780 return ptr;
1781 }
1782
1783function malloc32(sz) {
1784 var backing = new Uint8Array(0x10000 + sz * 4);

Callers 1

runPayloadFunction · 0.70

Calls 3

readpMethod · 0.45
addMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected