This function is used to check whether the memory size of the MemoryData object meets the requirements. The memory size can be 0 bytes.
1 | static APP_ERROR MemoryHelper::CheckDataSizeAllowZero(long size); |
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Memory size of the MemoryData object, in bytes. The value range is [0, 4294967296]. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |