Mojo module
memory
Defines functions for memory manipulations.
You can import these APIs from the memory package. For example:
from std.memory import memcmpFunctions
-
destroy_n: Destroycountinitialized values atpointer. -
memcmp: Compares two buffers. Both strings are assumed to be of the same length. -
memcpy: Copycount * size_of[T]()bytes from src to dest. -
memmove: Copycount * size_of[T]()bytes from src to dest. -
memset: Fills memory with the given value. -
memset_zero: Fills memory with zeros. -
uninit_copy_n: Copycountvalues fromsrcinto memory atdest. -
uninit_move_n: Movecountvalues fromsrcinto memory atdest.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!