Lines Matching refs:dictBuffer
132 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts()
141 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict()
919 assert(dl->dictBuffer == NULL); in ZSTD_initLocalDict()
958 void* dictBuffer; in ZSTD_CCtx_loadDictionary_advanced() local
961 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem); in ZSTD_CCtx_loadDictionary_advanced()
962 RETURN_ERROR_IF(!dictBuffer, memory_allocation, "NULL pointer!"); in ZSTD_CCtx_loadDictionary_advanced()
963 ZSTD_memcpy(dictBuffer, dict, dictSize); in ZSTD_CCtx_loadDictionary_advanced()
964 cctx->localDict.dictBuffer = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
965 cctx->localDict.dict = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
3586 const void* dictBuffer, size_t dictSize, in ZSTD_initCDict_internal() argument
3598 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dictBuffer) || (!dictSize)) { in ZSTD_initCDict_internal()
3599 cdict->dictContent = dictBuffer; in ZSTD_initCDict_internal()
3604 ZSTD_memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()
3672 ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, in ZSTD_createCDict_advanced() argument
3684 dictBuffer, dictSize, in ZSTD_createCDict_advanced()