6 #ifndef ZEROBUF_DYNAMICSUBALLOCATOR_H 7 #define ZEROBUF_DYNAMICSUBALLOCATOR_H 9 #include <zerobuf/Allocator.h> 23 size_t elementIndex,
size_t size);
24 ZEROBUF_API ~DynamicSubAllocatorBase();
26 ZEROBUF_API uint8_t* getData()
final;
27 ZEROBUF_API
const uint8_t* getData()
const final;
28 size_t getSize()
const final {
return _size; }
29 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size)
final;
30 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.