MxbsMallocAndCopy
Function Usage
Memory copy function, which allocates and copies the destination memory between the host and device based on the memory location specified in MemoryData.
Prototype
static APP_ERROR MxbsMallocAndCopy(MemoryData& dest, const MemoryData& src);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
dest |
Input |
Destination memory to be copied |
src |
Input |
Source memory to be copied |
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