AppenderNoGCFixed

A gutted, NoGC version of std.array.appender.

Works on a fixed-size buffer.

Constructors

this
this(T[] arr)

Construct an appender that will work with given buffer.

Members

Functions

clear
void clear()

Clears the managed array. This allows the elements of the array to be reused for appending.

clear
void clear()

Clear is not available for const/immutable data.

Properties

capacity
size_t capacity [@property getter]

Returns the capacity of the array (the maximum number of elements the managed array can accommodate before triggering a reallocation). If any appending will reallocate, capacity returns 0.

data
inout(T)[] data [@property getter]

Returns the managed array.

Meta