ZeroBuf  0.1.0
ZeroBuf is a replacement for FlatBuffers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
zerobuf::Zerobuf Class Referenceabstract

Base class for all zerobufs. More...

#include <Zerobuf.h>

+ Inheritance diagram for zerobuf::Zerobuf:
+ Collaboration diagram for zerobuf::Zerobuf:

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 AllocatorgetAllocator () const
 

Protected Member Functions

 Zerobuf (Allocator *alloc)
 
ZEROBUF_API Zerobufoperator= (const Zerobuf &rhs)
 
AllocatorgetAllocator ()
 
ZEROBUF_API void _setZerobufArray (const void *data, const size_t size, const size_t arrayNum)
 

Detailed Description

Base class for all zerobufs.

Zerobuf objects can serialize/deserialize directly from their member storage and from and to JSON.

Definition at line 22 of file Zerobuf.h.


The documentation for this class was generated from the following file: