feature: Added structure for ArrayListSlices
This commit is contained in:
@@ -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 :)
|
||||
|
||||
Reference in New Issue
Block a user