ZeroBuf
0.1.0
ZeroBuf is a replacement for FlatBuffers
|
A ZeroBuf object which can hold values that are described by the given schema. More...
#include <Generic.h>
Public Member Functions | |
ZEROBUF_API | GenericBase (const Schema &schema) |
ZEROBUF_API servus::uint128_t | getZerobufType () const final |
ZEROBUF_API Schema | getSchema () const final |
Public Member Functions inherited from zerobuf::Zerobuf | |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from zerobuf::Zerobuf | |
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) |
A ZeroBuf object which can hold values that are described by the given schema.
The main purpose is to create an object at runtime where the values can be set and accessed via JSON w/o having the schema file nor the generated class file available. Hence it does not provide any semantic methods.