Mojo function
memcpy
memcpy[T: AnyType](dest: UnsafePointer[T, alignment=alignment, mut=mut, origin=origin], src: UnsafePointer[T, alignment=alignment, mut=mut, origin=origin], count: Int)
Copies a memory area.
Parameters:
- T (
AnyType
): The element type.
Args:
- dest (
UnsafePointer[T, alignment=alignment, mut=mut, origin=origin]
): The destination pointer. - src (
UnsafePointer[T, alignment=alignment, mut=mut, origin=origin]
): The source pointer. - count (
Int
): The number of elements to copy.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!