Function ScratchBuffer.opSlice
Borrows the exact live contiguous prefix as a D slice.
T[] opSlice() scope nothrow @nogc @trusted;
const(T)[] opSlice() scope const nothrow @nogc @trusted;
Returns
Mutable slice of the length live elements, or an empty slice when no
element is live.
Invalidation
Successful structural mutation, reset, successful capacity growth,
whole-buffer move, or destruction invalidates previously returned
slices.
Allocation
None.