mir-algorithm — Libmir Archive
Libmir Archive
API Reference Index
mir-algorithm Guide
Dlang.org
ScopedBuffer.shrinkTo
mir
appender
ScopedBuffer
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
)
mir
appender
ScopedBuffer
aliases
opOpAssign
destructors
~this
functions
data
initialize
length
moveDataAndEmplaceTo
popBackN
prepare
put
reserve
reset
shrinkTo
postblits
this(this)
Shrinks the buffer's length to the specified size, discarding any data beyond that point.