6 #ifndef ZEROBUF_DYNAMICSUBALLOCATOR_H 7 #define ZEROBUF_DYNAMICSUBALLOCATOR_H 10 #include <zerobuf/Allocator.h> 22 size_t elementIndex,
size_t size );
23 ZEROBUF_API ~DynamicSubAllocatorBase();
25 ZEROBUF_API uint8_t* getData()
final;
26 ZEROBUF_API
const uint8_t* getData()
const final;
27 size_t getSize()
const final {
return _size; }
28 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size )
final;
29 bool isMutable()
const final {
return _parent.isMutable(); }
34 const size_t _element;
Defines export visibility macros for library ZeroBuf.
Zero-copy, zero-serialize, zero-hassle protocol buffers.
Allocator base class and interface.
A zerobuf child allocator which manages a dynamic allocation of statically-sized members.