# Function QnnSystemDlc\_createFromBinary

- Defined in [File QnnSystemDlc.h](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemDlc_h.html#file-include-qnn-system-qnnsystemdlc-h)

## Function Documentation

- [Qnn\_ErrorHandle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1a8e21e7c6a7471103b59098ef81c28570.html#_CPPv417Qnn_ErrorHandle_t) QnnSystemDlc\_createFromBinary([Qnn\_LogHandle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1a482a908598834090f74f7eb0103876ea.html#_CPPv415Qnn_LogHandle_t) logger, const uint8\_t \*buffer, const [Qnn\_ContextBinarySize\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnTypes_8h_1abe693e6fd72f4165901dc7c3360e5825.html#_CPPv423Qnn_ContextBinarySize_t) bufferSize, [QnnSystemDlc\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1aa806208ef431f9851e86ed0f4f174d27.html#_CPPv421QnnSystemDlc_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()](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemLog_h.html#QnnSystemLog_8h_1a09dd64d1bb8029fb7c0814a7a5904f07). Can be NULL
- **bufferSize** – **[in]** size of the binary buffer
- **dlcHandle** – **[out]** A handle to the created instance of a systemDlc entity

- Returns

    - Error code

- QNN\_SUCCESS: Successfully created a systemDlc entity
- QNN\_SYSTEM\_DLC\_ERROR\_INVALID\_ARGUMENT: sysCtxHandle is NULL
- QNN\_COMMON\_ERROR\_MEM\_ALLOC: Error encountered in allocating memory for systemDlc instance
- QNN\_SYSTEM\_DLC\_ERROR\_UNSUPPORTED\_FEATURE: system context features not supported

Last Published: Jun 04, 2026