mem_copy

Definition: mem_copy(atom dest, atom source, integer i)
Description: Copy a block of i bytes of memory from address source to address dest.
Comments: The bytes of memory will be copied correctly even if the block of memory at source overlaps with the block of memory at dest.

mem_copy(dest, source, i) is equivalent to poke(dest, peek({source, i})) but is much faster.
Example:
dest = allocate(50)
src = allocate(100)
poke(src, {1,2,3,4,5,6,7,8,9})
mem_copy(dest, src, 9)
See Also: mem_set, peek, poke, allocate