Go to the source code of this file.
◆ CLIB_VECTOR_GROW_BY_ONE
#define CLIB_VECTOR_GROW_BY_ONE 0 |
Definition at line 42 of file vec.c.
◆ clib_mem_is_vec_h()
__clib_export uword clib_mem_is_vec_h |
( |
void * |
v, |
|
|
uword |
header_bytes |
|
) |
| |
Predicate function, says whether the supplied vector is a clib heap object (general version).
- Parameters
-
v | pointer to a vector |
header_bytes | vector header size in bytes (may be zero) |
- Returns
- 0 or 1
Definition at line 142 of file vec.c.
◆ vec_free_not_inline()
__clib_export void vec_free_not_inline |
( |
void * |
v | ) |
|
◆ vec_len_not_inline()
__clib_export u32 vec_len_not_inline |
( |
void * |
v | ) |
|
◆ vec_resize_allocate_memory()
__clib_export void* vec_resize_allocate_memory |
( |
void * |
v, |
|
|
word |
length_increment, |
|
|
uword |
data_bytes, |
|
|
uword |
header_bytes, |
|
|
uword |
data_align, |
|
|
uword |
numa_id |
|
) |
| |
Low-level resize allocation function, usually not called directly.
- Parameters
-
v | pointer to a vector |
length_increment | length increment in elements |
data_bytes | requested size in bytes |
header_bytes | header size in bytes (may be zero) |
data_align | alignment (may be zero) |
numa_id | numa id (may be zero) |
- Returns
- v_prime pointer to resized vector, may or may not equal v
Definition at line 48 of file vec.c.