ZeroBuf
0.1.0
ZeroBuf is a replacement for FlatBuffers
|
A zerobuf child allocator which does not move existing fields. More...
#include <NonMovingSubAllocator.h>
Public Member Functions | |
ZEROBUF_API | NonMovingSubAllocator (NonMovingBaseAllocator *parent, size_t index, size_t numDynamic, size_t staticSize) |
ZEROBUF_API | NonMovingSubAllocator (const NonMovingSubAllocator &from) |
ZEROBUF_API NonMovingSubAllocator & | operator= (const NonMovingSubAllocator &) |
ZEROBUF_API uint8_t * | getData () final |
ZEROBUF_API const uint8_t * | getData () const final |
size_t | getSize () const final |
ZEROBUF_API void | copyBuffer (const void *data, size_t size) final |
Public Member Functions inherited from zerobuf::NonMovingBaseAllocator | |
ZEROBUF_API | NonMovingBaseAllocator (size_t staticSize, size_t numDynamic) |
ZEROBUF_API | NonMovingBaseAllocator (const NonMovingBaseAllocator &from) |
ZEROBUF_API NonMovingBaseAllocator & | operator= (const NonMovingBaseAllocator &rhs) |
ZEROBUF_API uint8_t * | updateAllocation (size_t index, size_t size) override |
Update allocation of the dynamic elem. More... | |
Public Member Functions inherited from zerobuf::Allocator | |
template<class T > | |
T * | getItemPtr (const size_t offset) |
template<class T > | |
const T * | getItemPtr (const size_t offset) const |
template<class T > | |
T & | getItem (const size_t offset) |
template<class T > | |
T | getItem (const size_t offset) const |
template<class T > | |
T * | getDynamic (const size_t index) |
template<class T > | |
const T * | getDynamic (const size_t index) const |
size_t | getDynamicSize (const size_t index) const |
Additional Inherited Members | |
Protected Member Functions inherited from zerobuf::Allocator | |
uint64_t & | _getOffset (const size_t i) |
uint64_t | _getOffset (const size_t i) const |
uint64_t & | _getSize (const size_t i) |
uint64_t | _getSize (const size_t i) const |
A zerobuf child allocator which does not move existing fields.
Definition at line 16 of file NonMovingSubAllocator.h.