Static buffer with pre-allocated memory.
More...
#include <static-buffer.hpp>
|
char * | data () |
| Returns the pointer on the data. More...
|
|
const char * | data () const |
| Returns the pointer on the data (const version) More...
|
|
void | resize (const size_t new_size) |
| Increase the capacity of the vector to a value that's greater or equal to new_size. More...
|
|
size_t | size () const |
| Returns the current size of the buffer. More...
|
|
| StaticBuffer (const size_t n) |
| . More...
|
|
Static buffer with pre-allocated memory.
Definition at line 16 of file static-buffer.hpp.
pinocchio::serialization::StaticBuffer::StaticBuffer |
( |
const size_t |
n | ) |
|
|
inlineexplicit |
char* pinocchio::serialization::StaticBuffer::data |
( |
| ) |
|
|
inline |
const char* pinocchio::serialization::StaticBuffer::data |
( |
| ) |
const |
|
inline |
Returns the pointer on the data (const version)
Definition at line 39 of file static-buffer.hpp.
void pinocchio::serialization::StaticBuffer::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_t pinocchio::serialization::StaticBuffer::size |
( |
| ) |
const |
|
inline |
std::vector<char> pinocchio::serialization::StaticBuffer::m_data |
|
protected |
size_t pinocchio::serialization::StaticBuffer::m_size |
|
protected |
The documentation for this struct was generated from the following file: