MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_allocator_membuf_alloc

Function acl_allocator_membuf_alloc

lib_acl/src/stdlib/memory/acl_allocator.c:333–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void *acl_allocator_membuf_alloc(const char *filename, int line,
334 ACL_ALLOCATOR *allocator, size_t size)
335{
336 size_t gross_size;
337 acl_mem_type type = memBufFindSizeType(size, &gross_size);
338
339 if (type != ACL_MEM_TYPE_NONE)
340 return acl_allocator_mem_alloc(filename, line, allocator, type);
341 else
342 return acl_default_malloc(filename, line, size);
343}
344
345void *acl_allocator_membuf_realloc(const char *filename, int line,
346 ACL_ALLOCATOR *allocator, void *oldbuf, size_t size)

Callers 14

mempool_bench_testFunction · 0.85
mempool_mallocFunction · 0.85
mempool_callocFunction · 0.85
mempool_strdupFunction · 0.85
mempool_strndupFunction · 0.85
mempool_memdupFunction · 0.85

Calls 3

memBufFindSizeTypeFunction · 0.85
acl_allocator_mem_allocFunction · 0.85
acl_default_mallocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…