Function SegmentedBuffer.append
Appends as many values as fit and returns the number accepted.
size_t append(
scope const(T)[] values
);
Input is copied into owned storage. Existing tail space is filled before
a new segment is acquired. If the input does not fit completely, the
return value is smaller than values; the already accepted
prefix remains valid and the remainder is not retained. A zero return
means the buffer is currently at its maximum length or values is
empty.
Existing borrowed segment slices must be discarded after a successful append.