6 #ifndef ZEROBUF_STATICSUBALLOCATOR_H 7 #define ZEROBUF_STATICSUBALLOCATOR_H 9 #include <zerobuf/Allocator.h> 20 ZEROBUF_API ~StaticSubAllocatorBase();
22 ZEROBUF_API uint8_t* getData()
final;
23 ZEROBUF_API
const uint8_t* getData()
const final;
24 size_t getSize()
const final {
return _size; }
25 ZEROBUF_API
void copyBuffer(
const void* data,
size_t size)
final;
26 bool isMutable()
const final {
return _parent.isMutable(); }
Defines export visibility macros for library ZeroBuf.
Zero-copy, zero-serialize, zero-hassle protocol buffers.
A zerobuf child allocator which manages a static sub-struct.
Allocator base class and interface.