CheckDataSize
Function Usage
This function is used to check whether the memory size of the MemoryData object meets the requirements. The memory size cannot be 0 bytes. The value ranges from 1 to 1073741824, in bytes.
Prototype
static APP_ERROR CheckDataSize(long size);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Memory size of the MemoryData object, in bytes. |
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