Lines Matching refs:customMem
123 static size_t ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_expand() argument
125 …** newTable = (const ZSTD_DDict**)ZSTD_customCalloc(sizeof(ZSTD_DDict*) * newTableSize, customMem); in ZSTD_DDictHashSet_expand()
140 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand()
170 static ZSTD_DDictHashSet* ZSTD_createDDictHashSet(ZSTD_customMem customMem) { in ZSTD_createDDictHashSet() argument
171 …TD_DDictHashSet* ret = (ZSTD_DDictHashSet*)ZSTD_customMalloc(sizeof(ZSTD_DDictHashSet), customMem); in ZSTD_createDDictHashSet()
175 …nst ZSTD_DDict**)ZSTD_customCalloc(DDICT_HASHSET_TABLE_BASE_SIZE * sizeof(ZSTD_DDict*), customMem); in ZSTD_createDDictHashSet()
177 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet()
188 static void ZSTD_freeDDictHashSet(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_freeDDictHashSet() argument
191 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet()
194 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet()
201 …ctHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_addDDict() argument
204 FORWARD_IF_ERROR(ZSTD_DDictHashSet_expand(hashSet, customMem), ""); in ZSTD_DDictHashSet_addDDict()
279 static ZSTD_DCtx* ZSTD_createDCtx_internal(ZSTD_customMem customMem) { in ZSTD_createDCtx_internal() argument
280 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDCtx_internal()
282 { ZSTD_DCtx* const dctx = (ZSTD_DCtx*)ZSTD_customMalloc(sizeof(*dctx), customMem); in ZSTD_createDCtx_internal()
284 dctx->customMem = customMem; in ZSTD_createDCtx_internal()
290 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument
292 return ZSTD_createDCtx_internal(customMem); in ZSTD_createDCtx_advanced()
313 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx()
1514 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument
1516 return ZSTD_createDCtx_internal(customMem); in ZSTD_createDStream_advanced()
1538 …ocal = ZSTD_createDDict_advanced(dict, dictSize, dictLoadMethod, dictContentType, dctx->customMem); in ZSTD_DCtx_loadDictionary_advanced()
1616 dctx->ddictSet = ZSTD_createDDictHashSet(dctx->customMem); in ZSTD_DCtx_refDDict()
1622 … FORWARD_IF_ERROR(ZSTD_DDictHashSet_addDDict(dctx->ddictSet, ddict, dctx->customMem), ""); in ZSTD_DCtx_refDDict()
2013 ZSTD_customFree(zds->inBuff, zds->customMem); in ZSTD_decompressStream()
2016 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()