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
static APP_ERROR MxbsMemcpy (MemoryData& dest, MemoryData& src, size_t count);
Parameter Description
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 length of the target memory and source memory. If the length is incorrectly set, a core dump may occur. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: MemoryHelper