MxstBufferAndMetadataOutput
函数功能
Stream接收的buffer和元数据结构定义。
函数原型
struct MxstBufferAndMetadataOutput {
APP_ERROR errorCode = APP_ERR_OK;
std::string errorMsg;
std::shared_ptr<MxstBufferOutput> bufferOutput;
std::vector<MxstMetadataOutput> metadataVec;
void *reservedPtr = nullptr;
MxstBufferAndMetadataOutput() = default;
explicit MxstBufferAndMetadataOutput(APP_ERROR errorCode, const std::string& errorMsg = "")
: errorCode(errorCode), errorMsg(std::move(errorMsg)) {}
void SetErrorInfo(APP_ERROR errorCodeIn, const std::string& errorMsgIn)
{
errorCode = errorCodeIn;
errorMsg = errorMsgIn;
}
};
参数说明
参数名 |
输入/输出 |
说明 |
|---|---|---|
errorCode |
输入 |
错误码。 |
errorMsg |
输入 |
错误信息。 |
bufferOutput |
输入 |
输出buffer对应的智能指针,内部数据结构为MxstBufferOutput。 |
metadataVec |
输入 |
输出元数据的vector。 |
reservedPtr |
输入 |
预留指针。 |
父主题: 数据结构