ScopedBuffer.shrinkTo

Shrinks the buffer's length to the specified size, discarding any data beyond that point.

struct ScopedBuffer(T, size_t bytes = 4096)
void
shrinkTo
(
size_t length
)
if (
bytes &&
T.sizeof <= bytes
)