7 #ifndef ZEROBUF_NONMOVINGSUBALLOCATOR_H 8 #define ZEROBUF_NONMOVINGSUBALLOCATOR_H 11 #include <zerobuf/NonMovingBaseAllocator.h> 23 ZEROBUF_API ~NonMovingSubAllocatorBase();
26 ZEROBUF_API uint8_t* getData()
final;
27 ZEROBUF_API
const uint8_t* getData()
const final;
28 ZEROBUF_API
size_t getSize()
const final;
29 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size )
final;
30 bool isMutable()
const final {
return _parent.isMutable(); }
39 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.