7 #ifndef ZEROBUF_NONMOVINGSUBALLOCATOR_H
8 #define ZEROBUF_NONMOVINGSUBALLOCATOR_H
11 #include <zerobuf/NonMovingBaseAllocator.h>
20 size_t index,
size_t numDynamic,
22 ZEROBUF_API NonMovingSubAllocator(
const NonMovingSubAllocator& from );
23 ZEROBUF_API ~NonMovingSubAllocator();
26 NonMovingSubAllocator& operator = (
const NonMovingSubAllocator& );
28 ZEROBUF_API uint8_t* getData()
final;
29 ZEROBUF_API
const uint8_t* getData()
const final;
30 size_t getSize()
const final {
return _size; }
31 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size )
final;
38 void _resize(
size_t newSize )
final;
Allocator base class which does not move existing fields.
Defines export visibility macros for library ZeroBuf.
A zerobuf child allocator which does not move existing fields.