Function QnnSystemDlc_createFromBinary¶
Defined in File QnnSystemDlc.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnSystemDlc_createFromBinary(Qnn_LogHandle_t logger, const uint8_t *buffer, const Qnn_ContextBinarySize_t bufferSize, QnnSystemDlc_Handle_t *dlcHandle)¶
A function to create an instance of the DLC from a binary buffer.
- Parameters
buffer – [in] pointer to buffer representing the DLC
logger – [in] a log handle produced from QnnSystemLog_create(). Can be NULL
bufferSize – [in] size of the binary buffer
dlcHandle – [out] A handle to the created instance of a systemContext entity
- Returns
Error code
QNN_SUCCESS: Successfully created a systemContext entity
QNN_SYSTEM_DLC_ERROR_INVALID_ARGUMENT: sysCtxHandle is NULL
QNN_COMMON_ERROR_MEM_ALLOC: Error encountered in allocating memory for systemContext instance
QNN_SYSTEM_DLC_ERROR_UNSUPPORTED_FEATURE: system context features not supported