7 #ifndef ZEROBUF_NONMOVINGSUBALLOCATOR_H 8 #define ZEROBUF_NONMOVINGSUBALLOCATOR_H 10 #include <zerobuf/NonMovingBaseAllocator.h> 21 size_t numDynamic,
size_t staticSize);
22 ZEROBUF_API ~NonMovingSubAllocatorBase();
24 ZEROBUF_API uint8_t* getData()
final;
25 ZEROBUF_API
const uint8_t* getData()
const final;
26 ZEROBUF_API
size_t getSize()
const final;
27 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size)
final;
28 bool isMutable()
const final {
return _parent.isMutable(); }
36 void _resize(
size_t newSize)
final;
Allocator base class which does not move existing fields.
Defines export visibility macros for library ZeroBuf.
Zero-copy, zero-serialize, zero-hassle protocol buffers.
A zerobuf child allocator which does not move existing fields.