Skip to main content

Mojo function

memcpy

memcpy[T: AnyType](*, dest: UnsafePointer[T, origin], src: UnsafePointer[T, origin], count: Int)

Copies a memory area.

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?