Home
last modified time | relevance | path

Searched refs:customMem (Results 1 – 5 of 5) sorted by relevance

/lib/zstd/common/
A Dzstd_common.c50 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customMalloc() argument
52 if (customMem.customAlloc) in ZSTD_customMalloc()
53 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc()
57 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customCalloc() argument
59 if (customMem.customAlloc) { in ZSTD_customCalloc()
62 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc()
69 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem) in ZSTD_customFree() argument
72 if (customMem.customFree) in ZSTD_customFree()
73 customMem.customFree(customMem.opaque, ptr); in ZSTD_customFree()
A Dzstd_internal.h343 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem);
344 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem);
345 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem);
/lib/zstd/decompress/
A Dzstd_ddict.c140 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument
142 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDDict_advanced()
144 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_customMalloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced()
146 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
A Dzstd_decompress.c135 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand()
172 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet()
186 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet()
189 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet()
274 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDCtx_internal()
278 dctx->customMem = customMem; in ZSTD_createDCtx_internal()
284 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument
286 return ZSTD_createDCtx_internal(customMem); in ZSTD_createDCtx_advanced()
307 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx()
1474 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument
[all …]
A Dzstd_decompress_internal.h146 ZSTD_customMem customMem; member

Completed in 17 milliseconds