Lines Matching refs:dictBuffer
135 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts()
144 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict()
971 assert(dl->dictBuffer == NULL); in ZSTD_initLocalDict()
1010 void* dictBuffer; in ZSTD_CCtx_loadDictionary_advanced() local
1013 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem); in ZSTD_CCtx_loadDictionary_advanced()
1014 RETURN_ERROR_IF(!dictBuffer, memory_allocation, "NULL pointer!"); in ZSTD_CCtx_loadDictionary_advanced()
1015 ZSTD_memcpy(dictBuffer, dict, dictSize); in ZSTD_CCtx_loadDictionary_advanced()
1016 cctx->localDict.dictBuffer = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
1017 cctx->localDict.dict = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
3621 const void* dictBuffer, size_t dictSize, in ZSTD_initCDict_internal() argument
3633 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dictBuffer) || (!dictSize)) { in ZSTD_initCDict_internal()
3634 cdict->dictContent = dictBuffer; in ZSTD_initCDict_internal()
3639 ZSTD_memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()
3707 ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, in ZSTD_createCDict_advanced() argument
3719 dictBuffer, dictSize, in ZSTD_createCDict_advanced()