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

Function ZSTD_customMalloc

freebsd/contrib/zstd/lib/common/zstd_common.c:56–61  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

54* Custom allocator
55****************************************************************/
56void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem)
57{
58 if (customMem.customAlloc)
59 return customMem.customAlloc(customMem.opaque, size);
60 return ZSTD_malloc(size);
61}
62
63void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem)
64{

Callers 15

ZSTD_createDCtx_advancedFunction · 0.85
ZSTD_decompressStreamFunction · 0.85
ZSTD_initDDict_internalFunction · 0.85
POOL_create_advancedFunction · 0.85
POOL_resize_internalFunction · 0.85
ZSTDMT_getBufferFunction · 0.85
ZSTDMT_resizeBufferFunction · 0.85
ZSTDMT_serialState_resetFunction · 0.85
ZSTD_cwksp_createFunction · 0.85
ZSTD_createCCtx_advancedFunction · 0.85

Calls 1

ZSTD_mallocFunction · 0.85

Tested by

no test coverage detected