Mojo module
memory
Defines functions for memory manipulations.
You can import these APIs from the memory
package. For example:
from memory import memcmp
from memory import memcmp
Functionsβ
- β
memcmp
: Compares two buffers. Both strings are assumed to be of the same length. - β
memcpy
: Copies a memory area. - β
memset
: Fills memory with the given value. - β
memset_zero
: Fills memory with zeros. - β
stack_allocation
: Allocates data buffer space on the stack given a data type and number of elements.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?