Buffer
capacity() [Buffer class]
Returns the capacity of the buffer.
// PROTOTYPE
size_t capacity() const
It is possible to reserve additional bytes at the end of the buffer that are larger than the size. This allows for more efficient appending to the buffer when you know the eventual size, and eliminates multiple reallocations.