SendQueue.consume

void consume(size_t n) @trusted nothrow

Advance past n bytes that were written to the socket/pipe.

In dynamic-array mode this uses .dup to release the consumed front of the backing array for GC collection (matching pre-existing behaviour). In ring-buffer mode it is a simple pointer advance — zero allocation.

Parameters

nNumber of bytes consumed. Must be <= length().