MxstDataOutput

Function

Defines the output data of the inference service.

Structure Definition

struct MxstDataOutput {
    APP_ERROR errorCode = APP_ERR_OK;
    int dataSize = 0;
    uint32_t *dataPtr = nullptr;
    MxstDataOutput() = default;
   
    ~MxstDataOutput()
    {
        if (dataPtr != nullptr) {
            free(dataPtr);
            dataPtr = nullptr;
        }
    }
};

Parameter Description

Parameter

Input/Output

Description

errorCode

Output

Output error code

dataSize

Output

Size of the output result data, in bytes. The size must be the same as the actual size. Otherwise, a core dump may occur.

dataPtr

Output

Pointer to the output result data