5 #ifndef __pinocchio_serialization_static_buffer_hpp__
6 #define __pinocchio_serialization_static_buffer_hpp__
12 namespace serialization
51 m_data.reserve(new_size);
56 std::vector<char> m_data;
Main pinocchio namespace.
Static buffer with pre-allocated memory.
size_t size() const
Returns the current size of the buffer.
const char * data() const
Returns the pointer on the data (const version)
char * data()
Returns the pointer on the data.
void resize(const size_t new_size)
Increase the capacity of the vector to a value that's greater or equal to new_size.
StaticBuffer(const size_t n)