Lines Matching refs:dictBuffer
147 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts()
156 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict()
1036 assert(dl->dictBuffer == NULL); in ZSTD_initLocalDict()
1075 void* dictBuffer; in ZSTD_CCtx_loadDictionary_advanced() local
1078 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem); in ZSTD_CCtx_loadDictionary_advanced()
1079 RETURN_ERROR_IF(!dictBuffer, memory_allocation, "NULL pointer!"); in ZSTD_CCtx_loadDictionary_advanced()
1080 ZSTD_memcpy(dictBuffer, dict, dictSize); in ZSTD_CCtx_loadDictionary_advanced()
1081 cctx->localDict.dictBuffer = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
1082 cctx->localDict.dict = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
4671 const void* dictBuffer, size_t dictSize, in ZSTD_initCDict_internal() argument
4680 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dictBuffer) || (!dictSize)) { in ZSTD_initCDict_internal()
4681 cdict->dictContent = dictBuffer; in ZSTD_initCDict_internal()
4686 ZSTD_memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()
4758 ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, in ZSTD_createCDict_advanced() argument
4770 dictBuffer, dictSize, in ZSTD_createCDict_advanced()