Module pico8lib.memory
Reading, writing, manipulating memory
Local Functions
memcpy4 (dst, src, len) | Copy a block of memory from src to dst |
memcpy (dst, src, len) | Copy a block of memory from src to dst |
memcmp4 (a, b, l) | Compare two regions of memory |
memcmp (a, b, l) | Compare two regions of memory |
Local Functions
- memcpy4 (dst, src, len)
-
Copy a block of memory from
src
todst
Parameters:
- dst The offset to copy to
- src The offset to copy from
- len The number of bytes to copy (must be a multiple of 4)
Returns:
-
null
- memcpy (dst, src, len)
-
Copy a block of memory from
src
todst
Parameters:
- dst
- src
- len
- memcmp4 (a, b, l)
-
Compare two regions of memory
Parameters:
- a number First starting memory address
- b number Second starting memory address
- l number Length of regions to compare (must be a multiple of 4)
Returns:
-
boolean
True iff the regions are identical
- memcmp (a, b, l)
-
Compare two regions of memory
Parameters:
- a number First starting memory address
- b number Second starting memory address
- l number Length of regions to compare
Returns:
-
boolean
True iff the regions are identical