Constructs the buffer using the given initial capacity and allocation strategy. No memory is allocated yet.
Appends items to the buffer, expanding the buffer if needed.
Gets the length of the buffer, or the total number of items in it.
Resets the buffer.
Gets a slice representing the buffer's contents.
Gets a copy of this buffer's contents in a new allocated array. You must free this array yourself.
A betterC-compatible array buffer that grows as needed to accommodate new elements.