Buffer.setSize

Resize the buffer. If the new size is larger than the max size, the buffer will be reallocated so that size is the new maximum size. It is very inefficient to delete and allocate large amounts of memory like this so it is recommended to give the buffer an initial max size that will never be exceeded.

class Buffer(T)
nothrow @nogc
void
setSize
(
const size_t size
)

Meta