memmove
Mojo function 🡭
memmove
Section titled “memmove”def memmove[T: AnyType](*, dest: UnsafePointer[T, dest.origin], src: UnsafePointer[T, src.origin], count: Int)Copy count * size_of[T]() bytes from src to dest.
Unlike memcpy, the memory regions are allowed to overlap.
Parameters:
- T (
AnyType): The element type.
Args:
- dest (
UnsafePointer): The destination pointer. - src (
UnsafePointer): The source pointer. - count (
Int): The number of elements to copy.