Searched refs:customMem (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/lib/zstd/common/ |
A D | zstd_common.c | 56 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customMalloc() argument 58 if (customMem.customAlloc) in ZSTD_customMalloc() 59 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc() 63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customCalloc() argument 65 if (customMem.customAlloc) { in ZSTD_customCalloc() 68 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc() 75 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem) in ZSTD_customFree() argument 78 if (customMem.customFree) in ZSTD_customFree() 79 customMem.customFree(customMem.opaque, ptr); in ZSTD_customFree()
|
A D | zstd_internal.h | 348 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem); 349 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem); 350 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem);
|
/linux-6.3-rc2/lib/zstd/decompress/ |
A D | zstd_ddict.c | 145 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument 147 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDDict_advanced() 149 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_customMalloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced() 151 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
|
A D | zstd_decompress.c | 140 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand() 177 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet() 191 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet() 194 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet() 280 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; 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() 1495 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument [all …]
|
A D | zstd_decompress_internal.h | 151 ZSTD_customMem customMem; member
|
/linux-6.3-rc2/lib/zstd/compress/ |
A D | zstd_cwksp.h | 508 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) { in ZSTD_cwksp_create() argument 509 void* workspace = ZSTD_customMalloc(size, customMem); in ZSTD_cwksp_create() 516 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free() argument 520 ZSTD_customFree(ptr, customMem); in ZSTD_cwksp_free()
|
A D | zstd_compress.c | 80 ZSTD_customMem customMem; member 98 cctx->customMem = memManager; in ZSTD_initCCtx() 110 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced() 295 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtxParams_advanced() 300 params->customMem = customMem; in ZSTD_createCCtxParams_advanced() 1056 cctx->customMem); in ZSTD_initLocalDict() 2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal() 4729 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCDict_advanced_internal() 4751 cdict->customMem = customMem; in ZSTD_createCDict_advanced_internal() 4768 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced() [all …]
|
A D | zstd_compress_internal.h | 326 ZSTD_customMem customMem; member 374 ZSTD_customMem customMem; member
|
/linux-6.3-rc2/include/linux/ |
A D | zstd_lib.h | 1573 ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); 1574 ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); 1575 ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); 1576 ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); 1582 ZSTD_customMem customMem); 1608 ZSTD_customMem customMem); 1614 ZSTD_customMem customMem);
|
Completed in 39 milliseconds