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

Function array_from_address

g2all/900/lapse.js:1791–1799  ·  view source on GitHub ↗
(addr, size)

Source from the content-addressed store, hash-verified

1789 }
1790
1791function array_from_address(addr, size) {
1792 var og_array = new Uint32Array(0x1000);
1793 var og_array_i = mem.addrof(og_array).add(0x10);
1794 mem.write64(og_array_i, addr);
1795 mem.write32(og_array_i.add(0x8), size);
1796 mem.write32(og_array_i.add(0xC), 0x1);
1797 nogc.push(og_array);
1798 return og_array;
1799}
1800
1801function runPayload(PLfile) {
1802 var loader_addr = chain.sysp('mmap', 0, 0x1000, 7, 0x41000, -1, 0);

Callers 1

runPayloadFunction · 0.70

Calls 4

addMethod · 0.45
addrofMethod · 0.45
write64Method · 0.45
write32Method · 0.45

Tested by

no test coverage detected