50 #ifndef LEGATO_ARRAY_H 51 #define LEGATO_ARRAY_H Common macros and definitions used by Legato.
leResult leArray_Resize(leArray *arr, uint32_t sz)
Resize array.
Definition: legato_array.c:85
void ** values
Definition: legato_array.h:66
leResult leArray_Set(leArray *arr, uint32_t idx, void *val)
Set value at index.
Definition: legato_array.c:232
leResult leArray_RemoveAt(leArray *arr, uint32_t idx)
Remove value at index.
Definition: legato_array.c:197
leResult leArray_PushBack(leArray *arr, void *val)
Push value on back.
Definition: legato_array.c:147
leResult leArray_Create(leArray *arr)
Create a new array.
Definition: legato_array.c:73
leResult leArray_InsertAt(leArray *arr, uint32_t idx, void *val)
Insert value at index.
Definition: legato_array.c:174
leResult
This enum represents function call results.
Definition: legato_common.h:123
int32_t leArray_Find(const leArray *arr, void *val)
Find a first index of value.
Definition: legato_array.c:242
leResult leArray_PushFront(leArray *arr, void *val)
Push value on front.
Definition: legato_array.c:119
leResult leArray_PopFront(leArray *arr)
Pop value from front.
Definition: legato_array.c:137
leResult leArray_Clear(leArray *arr)
Clear array.
Definition: legato_array.c:279
uint32_t size
Definition: legato_array.h:67
This struct represents a array.
Definition: legato_array.h:64
leResult leArray_PopBack(leArray *arr)
Pop value from back.
Definition: legato_array.c:164
uint32_t capacity
Definition: legato_array.h:68
leResult leArray_Copy(leArray *src, leArray *dest)
Copy array.
Definition: legato_array.c:258
struct leArray leArray
This struct represents a array.
void * leArray_Get(const leArray *arr, uint32_t idx)
Get entry at index.
Definition: legato_array.c:224
leResult leArray_Remove(leArray *arr, void *val)
Remove value.
Definition: legato_array.c:207