Home
last modified time | relevance | path

Searched refs:customAlloc (Results 1 – 6 of 6) sorted by relevance

/freebsd-12-stable/sys/contrib/zstd/lib/common/
Dzstd_common.c61 if (customMem.customAlloc) in ZSTD_malloc()
62 return customMem.customAlloc(customMem.opaque, size); in ZSTD_malloc()
68 if (customMem.customAlloc) { in ZSTD_calloc()
71 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_calloc()
/freebsd-12-stable/sys/contrib/zstd/lib/legacy/
Dzstd_v07.c67 typedef struct { ZSTDv07_allocFunction customAlloc; ZSTDv07_freeFunction customFree; void* opaque; … member
2979 if (!customMem.customAlloc && !customMem.customFree) in ZSTDv07_createDCtx_advanced()
2982 if (!customMem.customAlloc || !customMem.customFree) in ZSTDv07_createDCtx_advanced()
2985 dctx = (ZSTDv07_DCtx*) customMem.customAlloc(customMem.opaque, sizeof(ZSTDv07_DCtx)); in ZSTDv07_createDCtx_advanced()
4151 if (!customMem.customAlloc && !customMem.customFree) in ZSTDv07_createDDict_advanced()
4154 if (!customMem.customAlloc || !customMem.customFree) in ZSTDv07_createDDict_advanced()
4157 …{ ZSTDv07_DDict* const ddict = (ZSTDv07_DDict*) customMem.customAlloc(customMem.opaque, sizeof(*… in ZSTDv07_createDDict_advanced()
4158 void* const dictContent = customMem.customAlloc(customMem.opaque, dictSize); in ZSTDv07_createDDict_advanced()
4304 if (!customMem.customAlloc && !customMem.customFree) in ZBUFFv07_createDCtx_advanced()
4307 if (!customMem.customAlloc || !customMem.customFree) in ZBUFFv07_createDCtx_advanced()
[all …]
/freebsd-12-stable/sys/contrib/zstd/lib/
Dzstd.h592 typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree; void* opaque; } ZSTD… member
/freebsd-12-stable/sys/contrib/zstd/lib/compress/
Dzstd_compress.c71 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCCtx_advanced()
177 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCCtxParams_advanced()
2673 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCDict_advanced()
Dzstdmt_compress.c821 if ((cMem.customAlloc!=NULL) ^ (cMem.customFree!=NULL)) in ZSTDMT_createCCtx_advanced()
/freebsd-12-stable/sys/contrib/zstd/lib/decompress/
Dzstd_decompress.c213 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createDCtx_advanced()
2396 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createDDict_advanced()