Constructs a DArray and reserves space for n elements.
Returns a slice.
Returns the total capacity of the array.
Sets the capacity to exactly n elements.
Returns a copy.
Ensure space for 'ne' number of elements or grow by 1.5.
Calls the GC to free the memory and clears this DArray.
Sets: cap = next_pow_of_2(cap)
Sets: cap *= 1.5
Sets: cap *= 2
Adds x to ptr or subtracts from end.
Returns the size of the array.
Sets the size of the array. Resizes space if necessary. Does not deallocate if n is zero.
Returns the character at position x.
Assigns e at position x.
Appends x to the array. Appends the elements if X itself is an array.
Returns a slice.
Returns a slice from x to y.
Appends several items to the array.
Appends several items to the array, without checking for sufficient space.
Returns the remaining space before a reallocation is needed.
Sets the capacity so that space for n elements remain.
Reserves memory for at least n elements.
Returns the contents and clears this DArray.
A block needs to be scanned by the GC, if E as pointers.
An array implementation that uses D's Garbage Collector functions.