|
a_size | a_buf_num (void const *ctx) |
| access number of element for a pointer to buffer structure
|
|
a_size | a_buf_mem (void const *ctx) |
| access memory of element for a pointer to buffer structure
|
|
a_size | a_buf_siz (void const *ctx) |
| access size of a element for a pointer to buffer structure
|
|
void * | a_buf_ptr (void const *ctx) |
| access address of buffer for a pointer to buffer structure
|
|
void * | a_buf_at_ (void const *ctx, a_size idx) |
| access specified element for a pointer to buffer structure
|
|
void * | a_buf_at (void const *ctx, a_size idx) |
| access specified element for a pointer to buffer structure
|
|
void * | a_buf_of (void const *ctx, a_diff idx) |
| access specified element for a pointer to buffer structure
|
|
void * | a_buf_top_ (void const *ctx) |
| access top element for a pointer to buffer structure
|
|
void * | a_buf_top (void const *ctx) |
| access top element for a pointer to buffer structure
|
|
void * | a_buf_end (void const *ctx) |
| access end pointer for a pointer to buffer structure
|
|
a_buf * | a_buf_new (a_size siz, a_size num) |
| allocate a pointer to buffer structure from memory
|
|
void | a_buf_die (a_buf *ctx, void(*dtor)(void *)) |
| deallocate a pointer to buffer structure
|
|
void | a_buf_ctor (void *ctx, a_size siz, a_size num) |
| constructor for buffer structure
|
|
void | a_buf_dtor (void *ctx, void(*dtor)(void *)) |
| destructor for buffer structure
|
|
a_buf * | a_buf_setm (a_buf *ctx, a_size mem) |
| set memory of element for a pointer to buffer structure
|
|
void | a_buf_setn (void *ctx, a_size num, void(*dtor)(void *)) |
| set number of element for a pointer to buffer structure
|
|
void | a_buf_setz (void *ctx, a_size siz, void(*dtor)(void *)) |
| set size of a element for a pointer to buffer structure
|
|
void | a_buf_sort (void const *ctx, int(*cmp)(void const *, void const *)) |
| sort all elements for a pointer to buffer structure
|
|
void | a_buf_sort_fore (void const *ctx, int(*cmp)(void const *, void const *)) |
| insert sort foremost element for a pointer to buffer structure
|
|
void | a_buf_sort_back (void const *ctx, int(*cmp)(void const *, void const *)) |
| insert sort backmost element for a pointer to buffer structure
|
|
void * | a_buf_push_sort (void *ctx, void const *key, int(*cmp)(void const *, void const *)) |
| push an element into the buffer and sort it
|
|
void * | a_buf_search (void const *ctx, void const *obj, int(*cmp)(void const *, void const *)) |
| search the given element in this buffer
|
|
void * | a_buf_insert (void *ctx, a_size idx) |
| insert an element into the buffer
|
|
void * | a_buf_remove (void *ctx, a_size idx) |
| remove an element from the buffer
|
|
void * | a_buf_push_fore (void *ctx) |
| push an element into the buffer forward
|
|
void * | a_buf_push_back (void *ctx) |
| push an element into the buffer backward
|
|
void * | a_buf_pull_fore (void *ctx) |
| pull an element from the buffer forward
|
|
void * | a_buf_pull_back (void *ctx) |
| pull an element from the buffer backward
|
|
int | a_buf_store (void *ctx, a_size idx, void *ptr, a_size num, int(*copy)(void *, void const *)) |
| store elements into the buffer
|
|
int | a_buf_erase (void *ctx, a_size idx, a_size num, void(*dtor)(void *)) |
| erase elements from the buffer
|
|
void * | a_buf_push (void *ctx) |
| push an element into the buffer
|
|
void * | a_buf_pull (void *ctx) |
| pull an element from the buffer
|
|