diff --git a/2.1. vtype_array.md b/2.1. vtype_array.md index 9980e03..2c81c75 100644 --- a/2.1. vtype_array.md +++ b/2.1. vtype_array.md @@ -3,7 +3,6 @@ ### [include/array.h](https://gogs.lirent.ru/lirent/libcdsb/src/master/include/array.h) ##### Базовый блок - - `void array_init(vtype_array* x, vtype type)` - `void* array_at(const vtype_array* s, ssize_t index)` - `size_t array_slice(vtype_array* x, vtype_array* src, ssize_t index, size_t count, bool cut)` @@ -11,13 +10,37 @@ - `void array_reverse(vtype_array* x)` +##### Callback-функция доступа к элементу (далее Callback) + + ##### Макросы - - - +- `void array_push_back(vtype_array* x, T value)` +- `bool array_countof(vtype_array* x, T value)` +- `bool array_remove(vtype_array* x, T value)` +- `bool in_array(vtype_array* x, T value)` +- `int array_pop(vtype_array* x, T value, void* data, Callback callback)` +- `int array_find(vtype_array* x, T value, void* data, Callback callback)` +- `int array_rfind(vtype_array* x, T value, void* data, Callback callback)` ### [include/extra/array.h](https://gogs.lirent.ru/lirent/libcdsb/src/master/include/extra/array.h) +##### Базовый блок +- `ssize_t libcdsb_array_push(vtype_array* x, const void* value, vtype value_type)` +- `size_t libcdsb_array_count(const vtype_array* s, const void* value, vtype type)` +- `int libcdsb_array_find(vtype_array* x, const void* value, vtype type, void* data, array_access_callback, bool reverse, bool cut)` +- `int libcdsb_array_get(vtype_array* x, ssize_t index, void* data, array_access_callback, bool cut)` +- `int libcdsb_array_foreach(vtype_array* x, void* data, array_access_callback, bool flush)` + + +##### Макросы +- `int array_get_by_index(vtype_array* x, ssize_t index, void* data, Callback callback)` +- `int array_pop_by_index(vtype_array* x, ssize_t index, void* data, Callback callback)` +- `int array_remove_by_index(vtype_array* x, ssize_t index)` +- `int array_foreach(vtype_array* x, void* data, Callback callback)` + + + + [Далее: 2.2. vtype_dict](https://gogs.lirent.ru/lirent/libcdsb/wiki/2.2.+vtype_dict) \ No newline at end of file