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");
See Implementation