|
pinocchio
2.7.1
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
|
|
5 #ifndef __pinocchio_serialization_static_buffer_hpp__
6 #define __pinocchio_serialization_static_buffer_hpp__
12 namespace serialization
51 m_data.reserve(new_size);
57 std::vector<char> m_data;
63 #endif // ifndef __pinocchio_serialization_static_buffer_hpp__
StaticBuffer(const size_t n)
 
void resize(const size_t new_size)
Increase the capacity of the vector to a value that's greater or equal to new_size.
Static buffer with pre-allocated memory.
const char * data() const
Returns the pointer on the data (const version)
char * data()
Returns the pointer on the data.
size_t size() const
Returns the current size of the buffer.
Main pinocchio namespace.