UnsafeArrayBuffer

Members

Functions

data
inout(T)[] data()
popBackN
void popBackN(size_t n)
put
void put(T a)
put
void put(E[] a)

Variables

buffer
T[] buffer;
length
size_t length;

Examples

char[4] array;
auto buf = UnsafeArrayBuffer!char(array);
buf.put('c');
buf.put("str");
assert(buf.data == "cstr");

buf.popBackN(2);
assert(buf.data == "cs");

Meta