Function RingBuffer.firstSegment

Returns the first contiguous physical segment in logical FIFO order.

T[] firstSegment() scope nothrow @nogc @trusted;

const(T)[] firstSegment() scope const nothrow @nogc @trusted;

The returned slice borrows the owned backing allocation. Successful structural mutation, whole-buffer move, or destruction invalidates previously returned segment slices.