1 #ifndef ACL_SLICE_INCLUDE_H 2 #define ACL_SLICE_INCLUDE_H 10 #define ACL_SLICE_FLAG_OFF (0) 11 #define ACL_SLICE_FLAG_GC1 (1 << 0) 12 #define ACL_SLICE_FLAG_GC2 (1 << 1) 13 #define ACL_SLICE_FLAG_GC3 (1 << 2) 14 #define ACL_SLICE_FLAG_RTGC_OFF (1 << 10) 15 #define ACL_SLICE_FLAG_LP64_ALIGN (1 << 11) 44 int slice_size,
unsigned int flag);
110 unsigned int slice_flag);
131 void *(*calloc_hook)(
const char*,
int,
size_t,
size_t),
132 void *(*realloc_hook)(
const char*,
int,
void*,
size_t),
133 void (*free_hook)(
const char*,
int,
void*));
ACL_API void * acl_slice_pool_calloc(const char *filename, int line, ACL_SLICE_POOL *asp, size_t nmemb, size_t size)
ACL_API void * acl_slice_alloc(ACL_SLICE *slice)
ACL_API int acl_slice_used(ACL_SLICE *slice)
ACL_API void acl_slice_pool_init(ACL_SLICE_POOL *asp)
ACL_API void acl_slice_pool_clean(ACL_SLICE_POOL *asp)
HTTP_API void const char * name
ACL_API void * acl_slice_pool_realloc(const char *filename, int line, ACL_SLICE_POOL *asp, void *ptr, size_t size)
ACL_API void acl_slice_pool_reset(ACL_SLICE_POOL *asp)
ACL_API void * acl_slice_pool_memdup(const char *filename, int line, ACL_SLICE_POOL *asp, const void *ptr, size_t len)
ACL_API void acl_slice_destroy(ACL_SLICE *slice)
ACL_API char * acl_slice_pool_strndup(const char *filename, int line, ACL_SLICE_POOL *asp, const char *str, size_t len)
ACL_API void acl_slice_pool_free(const char *filename, int line, void *buf)
ACL_API void acl_slice_free(void *ptr)
ACL_API void acl_slice_free2(ACL_SLICE *slice, void *ptr)
ACL_API int acl_slice_gc(ACL_SLICE *slice)
ACL_API void * acl_slice_pool_alloc(const char *filename, int line, ACL_SLICE_POOL *asp, size_t size)
ACL_API ACL_SLICE * acl_slice_create(const char *name, int page_size, int slice_size, unsigned int flag)
ACL_API void acl_slice_stat(ACL_SLICE *slice, ACL_SLICE_STAT *sbuf)
ACL_API void acl_slice_pool_destroy(ACL_SLICE_POOL *asp)
ACL_API void acl_slice_pool_gc(ACL_SLICE_POOL *asp)
ACL_API void * acl_slice_calloc(ACL_SLICE *slice)
ACL_API void acl_slice_mem_unhook(void)
ACL_API int acl_slice_pool_used(ACL_SLICE_POOL *asp)
struct ACL_SLICE_STAT ACL_SLICE_STAT
ACL_API ACL_SLICE_POOL * acl_slice_pool_create(int base, int nslice, unsigned int slice_flag)
struct ACL_SLICE ACL_SLICE
struct ACL_SLICE_POOL ACL_SLICE_POOL
ACL_API void acl_slice_mem_hook(void *(*malloc_hook)(const char *, int, size_t), void *(*calloc_hook)(const char *, int, size_t, size_t), void *(*realloc_hook)(const char *, int, void *, size_t), void(*free_hook)(const char *, int, void *))
ACL_API char * acl_slice_pool_strdup(const char *filename, int line, ACL_SLICE_POOL *asp, const char *str)