MxstBufferAndMetadataOutput

Function Usage

Defines the buffer and metadata structure received by the stream.

Prototype

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;
    }
};

Parameter Description

Parameter

Input/Output

Description

errorCode

Input

Error code

errorMsg

Input

Error message

bufferOutput

Input

Smart pointer corresponding to the output buffer. The internal data structure is MxstBufferOutput.

metadataVec

Input

Output metadata vector

reservedPtr

Input

Reserved pointer