Skip to main content
Log in

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.