Mojo function
memcpy
memcpy[T: AnyType](*, dest: UnsafePointer[T, dest.origin], src: UnsafePointer[T, src.origin], count: Int)
Copy count * size_of[T]() bytes from src to dest.
The dest and src memory must not overlap. For potentially
overlapping memory regions, use memmove.
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!