Access properties of a vector.
More...
Access properties of a vector.
◆ vector_alloc_opts()
Access allocator options.
- Parameters
-
[in] | vector | Pointer to a vector instance. |
- Returns
- pointer to an allocator and size.
Definition at line 184 of file vector.c.
◆ vector_element_size()
size_t vector_element_size |
( |
const vector_t *const | vector | ) |
|
Reports current element size.
- Parameters
-
[in] | vector | Pointer to a vector instance. |
- Returns
- Element size in bytes.
Definition at line 194 of file vector.c.
◆ vector_capacity()
size_t vector_capacity |
( |
const vector_t *const | vector | ) |
|
Reports current capacity of the vector.
- Parameters
-
[in] | vector | Pointer to a vector instance. |
- Returns
- Amount of elements currently allocated.
Definition at line 201 of file vector.c.
◆ vector_capacity_bytes()
size_t vector_capacity_bytes |
( |
const vector_t *const | vector | ) |
|
Reports current capacity of the vector in bytes.
- Parameters
-
[in] | vector | Pointer to a vector instance. |
- Returns
- Amount of bytes currently allocated for elements.
Definition at line 208 of file vector.c.