gwion-util
utilities for the Gwion project
|
Go to the source code of this file.
Data Structures | |
struct | M_Vector_ |
Macros | |
#define | ARRAY_OFFSET SZ_INT * 3 |
#define | ARRAY_PTR(array) (array->ptr + ARRAY_OFFSET) |
#define | ARRAY_LEN(array) *(m_uint *)(array->ptr) |
#define | ARRAY_SIZE(array) *(m_uint *)(array->ptr + SZ_INT) |
#define | ARRAY_CAP(array) *(m_uint *)(array->ptr + SZ_INT * 2) |
Typedefs | |
typedef struct M_Vector_ * | M_Vector |
Functions | |
static ANN m_uint | m_vector_size (const M_Vector v) |
static ANN void | m_vector_get (const M_Vector v, const m_uint i, void *c) |
static ANN m_bit * | m_vector_addr (const M_Vector v, const m_uint i) |
void | m_vector_init (const M_Vector array, const m_uint size, const m_uint len) |
static ANN M_Vector | new_m_vector (MemPool p, const m_uint size, const m_uint len) |
static ANN void | m_vector_release (M_Vector a) |
static ANN void | free_m_vector (MemPool p, M_Vector a) |
ANN void | m_vector_set (const M_Vector, const m_uint, const void *) |
ANN void | m_vector_add (const M_Vector, const void *) |
ANN void | m_vector_rem (const M_Vector, const m_uint) |
ANN void | m_vector_insert (const M_Vector v, m_uint index, const void *data) |
ANN void | m_vector_add_front (const M_Vector v, const void *data) |
Definition at line 11 of file m_vector.h.
#define ARRAY_LEN | ( | array | ) | *(m_uint *)(array->ptr) |
Definition at line 9 of file m_vector.h.
#define ARRAY_OFFSET SZ_INT * 3 |
Definition at line 7 of file m_vector.h.
#define ARRAY_PTR | ( | array | ) | (array->ptr + ARRAY_OFFSET) |
Definition at line 8 of file m_vector.h.
Definition at line 10 of file m_vector.h.
Definition at line 37 of file m_vector.h.
Definition at line 18 of file m_vector.c.
Definition at line 22 of file m_vector.h.
Definition at line 17 of file m_vector.h.
Definition at line 8 of file m_vector.c.
Definition at line 45 of file m_vector.c.
Definition at line 35 of file m_vector.h.
Definition at line 36 of file m_vector.c.
Definition at line 31 of file m_vector.c.
Definition at line 13 of file m_vector.h.
Definition at line 28 of file m_vector.h.