feature: Added structure for ArrayListSlices

This commit is contained in:
2026-04-19 12:32:11 -06:00
parent 1ca3defacc
commit 4b2389ad62
2 changed files with 10 additions and 9 deletions

View File

@@ -11,6 +11,14 @@ struct ArrayList{
size_t elem_size;
};
struct ArrayListSlice {
ArrayList *arr;
size_t start;
size_t end;
size_t current;
bool is_safe;
};
// Grow and shrink factor is 2, 1.5 might give different results i guess
// but i'm basing myself in that Rust implementation of array does use
// 2 as the factor so i guess is good :)