Searched refs:customMem (Results 1 – 9 of 9) sorted by relevance
/linux/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 | 398 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem); 399 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem); 400 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem);
|
/linux/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 | 141 ZSTD_customFree((void*)oldTable, customMem); in ZSTD_DDictHashSet_expand() 178 ZSTD_customFree(ret, customMem); in ZSTD_createDDictHashSet() 192 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem); in ZSTD_freeDDictHashSet() 195 ZSTD_customFree(hashSet, customMem); in ZSTD_freeDDictHashSet() 205 FORWARD_IF_ERROR(ZSTD_DDictHashSet_expand(hashSet, customMem), ""); in ZSTD_DDictHashSet_addDDict() 280 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument 282 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createDCtx_advanced() 286 dctx->customMem = customMem; in ZSTD_createDCtx_advanced() 310 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx() 1449 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument [all …]
|
A D | zstd_decompress_internal.h | 135 ZSTD_customMem customMem; member
|
/linux/lib/zstd/compress/ |
A D | zstd_cwksp.h | 413 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) { in ZSTD_cwksp_create() argument 414 void* workspace = ZSTD_customMalloc(size, customMem); in ZSTD_cwksp_create() 421 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free() argument 425 ZSTD_customFree(ptr, customMem); in ZSTD_cwksp_free()
|
A D | zstd_compress.c | 69 ZSTD_customMem customMem; member 83 cctx->customMem = memManager; in ZSTD_initCCtx() 95 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced() 228 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtxParams_advanced() 233 params->customMem = customMem; in ZSTD_createCCtxParams_advanced() 939 cctx->customMem); in ZSTD_initLocalDict() 1924 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal() 3643 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCDict_advanced_internal() 3665 cdict->customMem = customMem; in ZSTD_createCDict_advanced_internal() 3682 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced() [all …]
|
A D | zstd_compress_internal.h | 253 ZSTD_customMem customMem; member 284 ZSTD_customMem customMem; member
|
/linux/include/linux/ |
A D | zstd_lib.h | 1507 ZSTDLIB_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); 1508 ZSTDLIB_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); 1509 ZSTDLIB_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); 1510 ZSTDLIB_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); 1516 ZSTD_customMem customMem); 1542 ZSTD_customMem customMem); 1548 ZSTD_customMem customMem);
|
Completed in 40 milliseconds