memmove
Mojo function 🡭
memmove
Section titled “memmove”fn memmove[T: AnyType](*, dest: UnsafePointer[T], src: UnsafePointer[T], 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[T]): The destination pointer. - src (
UnsafePointer[T]): The source pointer. - count (
Int): The number of elements to copy.