Creates an aligned buffer with given initial size.
Sets size to zero, but keeps allocated buffers.
Fills the buffer with the same value.
Finds an item, returns -1 if not found
Append an element to this buffer.
Append an element to this buffer.
Pop last element
Append an element to this buffer.
Appends another buffer to this buffer.
Appends a slice to this buffer. slice should not belong to the same buffer _data.
Move. Give up owner ship of the data.
Removes an item and replaces it by the last item. Warning: this reorders the array.
Removes an item and shift the rest of the array to front by 1. Warning: O(N) complexity.
Removes a range of items and shift the rest of the array to front. Warning: O(N) complexity.
Resizes a buffer to hold askedSize elements.
Kind of a std::vector replacement. Grow-only array, points to a (optionally aligned) memory location. This can also work as an output range. Vec is designed to work even when uninitialized, without makeVec. Warning: it is pretty barebones, doesn't respect T.init or call destructors. When used in a GC program, GC roots won't be registered.