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

Function array_from_address

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

Source from the content-addressed store, hash-verified

1797
1798// ChendoChap's from pOOBs4
1799function array_from_address(addr, size) {
1800 const og_array = new Uint32Array(0x1000);
1801 const og_array_i = mem.addrof(og_array).add(0x10);
1802 mem.write64(og_array_i, addr);
1803 mem.write32(og_array_i.add(0x8), size);
1804 mem.write32(og_array_i.add(0xc), 1);
1805 nogc.push(og_array);
1806 return og_array;
1807}
1808
1809function runPayload(path) {
1810 // Why xhr instead of fetch? More universal support, more control, better errors, etc.

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