Mojo function
memcpy
memcpy[count: Int](dest: UnsafePointer[T, address_space, exclusive, alignment], src: UnsafePointer[T, address_space, exclusive, alignment])
Copies a memory area.
Parameters:
- βcount (
Int
): The number of elements to copy (not bytes!).
Args:
- βdest (
UnsafePointer[T, address_space, exclusive, alignment]
): The destination pointer. - βsrc (
UnsafePointer[T, address_space, exclusive, alignment]
): The source pointer.
memcpy(dest_data: UnsafePointer[SIMD[int8, 1], address_space, exclusive, alignment], src_data: UnsafePointer[SIMD[int8, 1], address_space, exclusive, alignment], n: Int)
Copies a memory area.
Args:
- βdest_data (
UnsafePointer[SIMD[int8, 1], address_space, exclusive, alignment]
): The destination pointer. - βsrc_data (
UnsafePointer[SIMD[int8, 1], address_space, exclusive, alignment]
): The source pointer. - βn (
Int
): The number of bytes to copy.
memcpy(dest: UnsafePointer[T, address_space, exclusive, alignment], src: UnsafePointer[T, address_space, exclusive, alignment], count: Int)
Copies a memory area.
Args:
- βdest (
UnsafePointer[T, address_space, exclusive, alignment]
): The destination pointer. - βsrc (
UnsafePointer[T, address_space, exclusive, alignment]
): 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!
π What went wrong?