Searched refs:customMem (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/lib/zstd/common/ |
| H A D | allocations.h | 27 MEM_STATIC void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customMalloc() argument 29 if (customMem.customAlloc) in ZSTD_customMalloc() 30 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc() 34 MEM_STATIC void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) in ZSTD_customCalloc() argument 36 if (customMem.customAlloc) { in ZSTD_customCalloc() 39 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc() 46 MEM_STATIC void ZSTD_customFree(void* ptr, ZSTD_customMem customMem) in ZSTD_customFree() argument 49 if (customMem.customFree) in ZSTD_customFree() 50 customMem.customFree(customMem.opaque, ptr); in ZSTD_customFree()
|
| /linux-6.15/lib/zstd/decompress/ |
| H A D | zstd_ddict.c | 146 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument 148 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDDict_advanced() 150 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_customMalloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced() 152 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
|
| H A D | zstd_decompress.c | 143 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand() 180 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet() 194 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet() 197 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet() 286 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDCtx_internal() 290 dctx->customMem = customMem; in ZSTD_createDCtx_internal() 296 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument 298 return ZSTD_createDCtx_internal(customMem); in ZSTD_createDCtx_advanced() 319 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx() 1606 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument [all …]
|
| H A D | zstd_decompress_internal.h | 153 ZSTD_customMem customMem; member
|
| /linux-6.15/lib/zstd/compress/ |
| H A D | zstd_cwksp.h | 586 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) { in ZSTD_cwksp_create() argument 587 void* workspace = ZSTD_customMalloc(size, customMem); in ZSTD_cwksp_create() 594 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free() argument 598 ZSTD_customFree(ptr, customMem); in ZSTD_cwksp_free()
|
| H A D | zstd_compress.c | 86 ZSTD_customMem customMem; member 104 cctx->customMem = memManager; in ZSTD_initCCtx() 116 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced() 327 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtxParams_advanced() 332 params->customMem = customMem; in ZSTD_createCCtxParams_advanced() 1213 cctx->customMem); in ZSTD_initLocalDict() 2448 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal() 5498 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCDict_advanced_internal() 5521 cdict->customMem = customMem; in ZSTD_createCDict_advanced_internal() 5539 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced() [all …]
|
| H A D | zstd_compress_internal.h | 421 ZSTD_customMem customMem; member 486 ZSTD_customMem customMem; member
|
| /linux-6.15/include/linux/ |
| H A D | zstd_lib.h | 1850 ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); 1851 ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); 1852 ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); 1853 ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); 1859 ZSTD_customMem customMem); 1885 ZSTD_customMem customMem); 1891 ZSTD_customMem customMem);
|