CreateHostBufferWithMemory
Function Usage
Creates a buffer that contains the existing memory, specified data size, device ID, and device type. (Do not use this function.)
Prototype
SDK_AVAILABLE_FOR_IN static MxpiBuffer* CreateHostBufferWithMemory(const InputParam& inputParam);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputParam |
Input |
Data structure defined by the Buffer API. For details, see InputParam. The value range of inputParam.dataSize is [1, 1073741824]. |
Return Parameter Description
Data Structure |
Description |
|---|---|
MxpiBuffer* |
Data structure transferred between plugins. For details, see MxpiBuffer. |
Parent topic: MxpiBufferManager