Static buffer with pre-allocated memory.
More...
#include <pinocchio/serialization/static-buffer.hpp>
|
| | StaticBuffer (const size_t n) |
| |
|
| char * | data () |
| | Returns the pointer on the data.
|
| const char * | data () const |
| | Returns the pointer on the data (const version)
|
| void | resize (const size_t new_size) |
| | Increase the capacity of the vector to a value that's greater or equal to new_size.
|
| size_t | size () const |
| | Returns the current size of the buffer.
|
Static buffer with pre-allocated memory.
Definition at line 16 of file static-buffer.hpp.
◆ StaticBuffer()
◆ data() [1/2]
◆ data() [2/2]
Returns the pointer on the data (const version)
Definition at line 39 of file static-buffer.hpp.
◆ resize()
| void resize | ( | const size_t | new_size | ) | |
| inline |
Increase the capacity of the vector to a value that's greater or equal to new_size.
- Parameters
| [in] | new_size | New capacity of the buffer. |
Definition at line 48 of file static-buffer.hpp.
◆ size()
◆ m_data
◆ m_size
The documentation for this struct was generated from the following file: