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
1 | SDK_AVAILABLE_FOR_IN static MxpiBuffer* MxpiBufferManager::CreateHostBufferWithMemory(const InputParam& inputParam); |
Parameters
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, 4294967296]. The key in the inputParam structure cannot be passed to ReserveMetadataGraph, ReservedVisionList, and ErrorInfo. |
Response Parameters
Data Structure |
Description |
|---|---|
MxpiBuffer* |
Data structure transferred between plugins. For details, see MxpiBuffer. |
Parent topic: MxpiBufferManager