function
memcpy
memcpy[count: Int](dest: LegacyPointer[type, address_space], src: LegacyPointer[type, address_space])
Copies a memory area.
Parameters:
- count (
Int
): The number of elements to copy (not bytes!).
Args:
- dest (
LegacyPointer[type, address_space]
): The destination pointer. - src (
LegacyPointer[type, address_space]
): The source pointer.
memcpy[count: Int](dest: DTypePointer[type, address_space], src: DTypePointer[type, address_space])
Copies a memory area.
Parameters:
- count (
Int
): The number of elements to copy (not bytes!).
Args:
- dest (
DTypePointer[type, address_space]
): The destination pointer. - src (
DTypePointer[type, address_space]
): The source pointer.
memcpy(dest_data: LegacyPointer[SIMD[int8, 1], address_space], src_data: LegacyPointer[SIMD[int8, 1], address_space], n: Int)
Copies a memory area.
Args:
- dest_data (
LegacyPointer[SIMD[int8, 1], address_space]
): The destination pointer. - src_data (
LegacyPointer[SIMD[int8, 1], address_space]
): The source pointer. - n (
Int
): The number of bytes to copy.
memcpy(dest: LegacyPointer[type, address_space], src: LegacyPointer[type, address_space], count: Int)
Copies a memory area.
Args:
- dest (
LegacyPointer[type, address_space]
): The destination pointer. - src (
LegacyPointer[type, address_space]
): The source pointer. - count (
Int
): The number of elements to copy.
memcpy(dest: UnsafePointer[T, address_space], src: UnsafePointer[T, address_space], count: Int)
Copies a memory area.
Args:
- dest (
UnsafePointer[T, address_space]
): The destination pointer. - src (
UnsafePointer[T, address_space]
): The source pointer. - count (
Int
): The number of elements to copy.
memcpy(dest: DTypePointer[type, address_space], src: DTypePointer[type, address_space], count: Int)
Copies a memory area.
Args:
- dest (
DTypePointer[type, address_space]
): The destination pointer. - src (
DTypePointer[type, address_space]
): The source pointer. - count (
Int
): The number of elements to copy (not bytes!).
memcpy[dtype: DType, +](*, dest: UnsafePointer[SIMD[dtype, 1], 0], src: UnsafePointer[SIMD[dtype, 1], 0], count: Int)
Copies a memory area.
Parameters:
- dtype (
DType
): Inferred The dtype of the data to copy.
Args:
- dest (
UnsafePointer[SIMD[dtype, 1], 0]
): The destination pointer. - src (
UnsafePointer[SIMD[dtype, 1], 0]
): The source pointer. - count (
Int
): The number of elements to copy (not bytes!).