Struct StaticBuffer
Defined in File static-buffer.hpp
Struct Documentation
-
struct StaticBuffer
Static buffer with pre-allocated memory.
Public Functions
-
inline explicit StaticBuffer(const size_t n)
-
Defautl constructor from a given size
-
inline size_t size() const
Returns the current size of the buffer.
-
inline char *data()
Returns the pointer on the data.
-
inline const char *data() const
Returns the pointer on the data (const version)
-
inline void resize(const size_t new_size)
Increase the capacity of the vector to a value that’s greater or equal to new_size.
- Parameters:
new_size – [in] New capacity of the buffer.
-
inline explicit StaticBuffer(const size_t n)