(sz)
| 1779 | |
| 1780 | // ChendoChap's from pOOBs4 |
| 1781 | function malloc(sz) { |
| 1782 | const backing = new Uint8Array(0x10000 + sz); |
| 1783 | nogc.push(backing); |
| 1784 | const ptr = mem.readp(mem.addrof(backing).add(0x10)); |
| 1785 | ptr.backing = backing; |
| 1786 | return ptr; |
| 1787 | } |
| 1788 | |
| 1789 | // ChendoChap's from pOOBs4 |
| 1790 | function malloc32(sz) { |