ZeroBuf
0.1.0
ZeroBuf is a replacement for FlatBuffers
|
Base class for all zerobufs. More...
#include <Zerobuf.h>
Public Member Functions | |
virtual servus::uint128_t | getZerobufType () const =0 |
virtual Schema | getSchema () const =0 |
virtual void | notifyUpdated () |
ZEROBUF_API const void * | getZerobufData () const |
ZEROBUF_API size_t | getZerobufSize () const |
ZEROBUF_API void | setZerobufData (const void *data, size_t size) |
ZEROBUF_API std::string | toJSON () const |
ZEROBUF_API void | fromJSON (const std::string &json) |
ZEROBUF_API bool | operator== (const Zerobuf &rhs) const |
ZEROBUF_API bool | operator!= (const Zerobuf &rhs) const |
const Allocator * | getAllocator () const |
Protected Member Functions | |
Zerobuf (Allocator *alloc) | |
ZEROBUF_API Zerobuf & | operator= (const Zerobuf &rhs) |
Allocator * | getAllocator () |
ZEROBUF_API void | _setZerobufArray (const void *data, const size_t size, const size_t arrayNum) |
Base class for all zerobufs.
Zerobuf objects can serialize/deserialize directly from their member storage and from and to JSON.