Mojo module
memory
Defines functions for memory manipulations.
You can import these APIs from the memory package. For example:
from memory import memcmpFunctions
-
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!