MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ZSTD_malloc

Function ZSTD_malloc

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:7373–7378  ·  view source on GitHub ↗

=************************************************************** * Custom allocator ****************************************************************/

Source from the content-addressed store, hash-verified

7371* Custom allocator
7372****************************************************************/
7373void* ZSTD_malloc(size_t size, ZSTD_customMem customMem)
7374{
7375 if (customMem.customAlloc)
7376 return customMem.customAlloc(customMem.opaque, size);
7377 return malloc(size);
7378}
7379
7380void* ZSTD_calloc(size_t size, ZSTD_customMem customMem)
7381{

Callers 15

POOL_create_advancedFunction · 0.85
POOL_resize_internalFunction · 0.85
ZSTD_cwksp_createFunction · 0.85
ZSTD_createCCtx_advancedFunction · 0.85
ZSTD_getSequencesFunction · 0.85
ZSTD_initDDict_internalFunction · 0.85
ZSTD_createDCtx_advancedFunction · 0.85
ZSTD_decompressStreamFunction · 0.85
XXH_mallocFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected