API Reference › Memory
namespace

Memory

Raw memory — allocate byte and word buffers, copy and fill regions, and peek/poke individual bytes. The low-level escape hatch.

Memory.bytes(n) -> pointerAllocate n bytes.Memory.words(n) -> wordsAllocate n 32-bit words.Memory.copy(dst, src, n) -> voidCopy n bytes between buffers.Memory.fill(buf, value, n) -> voidSet n bytes to a value.Memory.peek(buf, i) -> intRead one byte.Memory.poke(buf, i, value) -> voidWrite one byte.
← All symbols