Go to the source code of this file.
|
DW_API_PUBLIC void * | memcpy_opt (void *__restrict const destination, const void *__restrict const source, size_t const num) |
| Memory copy of virtual process memory. More...
|
|
◆ memcpy_opt()
DW_API_PUBLIC void * memcpy_opt |
( |
void *__restrict const |
destination, |
|
|
const void *__restrict const |
source, |
|
|
size_t const |
num |
|
) |
| |
Memory copy of virtual process memory.
This subroutine shall call std::memcpy() for x86_64, and custom optimized implementation for aarch64. As in standard memcpy call destination and source memory blocks should not overlap.
NOTE: This function shall be used only if the source address belongs to a CUDA Pinned Host memory region. If either destination or source is an invalid or null pointer, the behavior is undefined, even if count is zero. Please check std::memcpy() documentation for details.
- Note
- The method has been deprecated and replaced by standard std::memcpy() implementation due to safety concerns.
- Parameters
-
[out] | destination | pointer to destination memory into which num bytes will be copied from source |
[in] | source | pointer to source memory which will be copied destination |
[in] | num | number of bytes to copy |
- Returns
- pointer to destination
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes