Buffer

size() [Buffer class]

Return the size of the buffer (number of bytes).

// PROTOTYPE
size_t size() const 

This is the size of the data, see also reserve() and capacity() for more information.