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. |
| pwa/p2js: | Not supported. |
| 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)
|
| Implementation: | via :%opMemCopy in builtins\VM\pMem.e (an autoinclude) - be warned however it is low-level complicated stuff that you do not need to know. |
| See Also: | mem_set, peek, poke, allocate |