MxbsMemcpy
Function Usage
Memory copy function, which copies data between the host and device based on the memory location specified in MemoryData.
You are advised to use MxbsMemcpy preferentially because Memcpy is the same as a system function name.
Prototype
1 | static APP_ERROR MemoryHelper::MxbsMemcpy (MemoryData& dest, const MemoryData& src, size_t count); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dest |
Input |
Destination memory to be copied. dest.ptrData cannot be a null pointer. |
src |
Input |
Source memory to be copied. src.ptrData cannot be a null pointer. |
count |
Input |
Length of the copied data. The length must be set based on the lengths of the destination memory and source memory. If the length is incorrectly set, a core dump may occur. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: MemoryHelper