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

Function acl_slice_pool_create

lib_acl/src/stdlib/memory/acl_slice.c:1239–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237}
1238
1239ACL_SLICE_POOL *acl_slice_pool_create(int base, int nslice,
1240 unsigned int slice_flag)
1241{
1242 ACL_SLICE_POOL *asp = (ACL_SLICE_POOL*)
1243 __slice_calloc_fn(__FILE__, __LINE__, 1, sizeof(*asp));
1244
1245 asp->base = base;
1246 asp->nslice = nslice;
1247 asp->slice_flag = slice_flag;
1248 asp->slices = (ACL_SLICE**) __slice_calloc_fn(__FILE__, __LINE__,
1249 nslice, sizeof(ACL_SLICE*));
1250 acl_slice_pool_init(asp);
1251 return asp;
1252}
1253
1254void acl_slice_pool_destroy(ACL_SLICE_POOL *asp)
1255{

Callers 3

fifo_testFunction · 0.85
htable_iterFunction · 0.85
mem_slice_createFunction · 0.85

Calls 1

acl_slice_pool_initFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…