Function nvcvPeekAtLastErrorMessage
Defined in File Status.h
Function Documentation
-
NVCVStatus nvcvPeekAtLastErrorMessage(char *msgBuffer, int32_t lenBuffer)
Returns the status code and message of the last CV-CUDA function call that failed in current thread.
The internal status code and message of current thread won’t be reset.
It’s guaranteed that the message is never larger than NVCV_MAX_STATUS_MESSAGE_LENGTH bytes, including the ‘\0’ string terminator.
- Parameters:
msgBuffer – [out] Pointer to memory where the status message will be written to. If NULL, no message is returned.
lenBuffer – [in] Size in bytes of msgBuffer.
If less than zero, lenBuffer is assumed to be 0.
- Returns:
The status of the last CV-CUDA function call that failed in current thread.