The OpenD Programming Language

OutBuffer.reserve

Preallocate nbytes more to the size of the internal buffer.

This is a speed optimization, a good guess at the maximum size of the resulting buffer will improve performance by eliminating reallocations and copying.

class OutBuffer
pure nothrow @safe @trusted
void
reserve
(
size_t nbytes
)
out { assert (offset + nbytes <= data.length); }

Meta