Function SegmentedBuffer.segment
Borrows one logical segment in consumption order.
const(T)[] segment(
size_t index
) scope const;
The returned slice contains the currently available portion of the
segment. index must be less than segmentCount. The slice is read-only
because the buffer's public append contract copies input into owned
storage; callers consume it with consume.