ZeroBuf
0.2.0
Zero-copy, zero-serialize, zero-hassle protocol buffers
|
Public Types | |
typedef ::zerobuf::Vector< uint8_t > | Data |
Public Member Functions | |
ImageJPEG::Data & | getData () |
const ImageJPEG::Data & | getData () const |
void | setData (uint8_t const *value, size_t size) |
std::vector< uint8_t > | getDataVector () const |
void | setData (const std::vector< uint8_t > &value) |
std::string | getDataString () const |
void | setData (const std::string &value) |
void | compact (float threshold=0.1f) final |
Remove unused holes from the zerobuf. More... | |
ImageJPEG (const std::vector< uint8_t > &dataValue) | |
ImageJPEG (const ImageJPEG &rhs) | |
ImageJPEG (ImageJPEG &&rhs) throw () | |
ImageJPEG (const ::zerobuf::Zerobuf &rhs) | |
ImageJPEG (::zerobuf::AllocatorPtr allocator) | |
ImageJPEG & | operator= (const ImageJPEG &rhs) |
ImageJPEG & | operator= (ImageJPEG &&rhs) |
std::string | getTypeName () const final |
::zerobuf::uint128_t | getTypeIdentifier () const final |
size_t | getZerobufStaticSize () const final |
size_t | getZerobufNumDynamics () const final |
void | _parseJSON (const Json::Value &json) final |
void | _createJSON (Json::Value &json) const final |
Public Member Functions inherited from zerobuf::Zerobuf | |
virtual void | notifyChanging () |
Called if any data in this object is about to change. More... | |
Zerobuf & | operator= (const Zerobuf &rhs) |
Assignment operator. More... | |
Zerobuf (Zerobuf &&rhs) | |
Move ctor. More... | |
Zerobuf & | operator= (Zerobuf &&rhs) |
Move operator. More... | |
bool | operator== (const Zerobuf &rhs) const |
bool | operator!= (const Zerobuf &rhs) const |
void | reset (AllocatorPtr allocator) |
void | check () const |
Static Public Member Functions | |
static size_t | ZEROBUF_STATIC_SIZE () |
static size_t | ZEROBUF_NUM_DYNAMICS () |
Additional Inherited Members | |
Protected Member Functions inherited from zerobuf::Zerobuf | |
Zerobuf (AllocatorPtr alloc) | |
const Allocator & | getAllocator () const |
Allocator & | getAllocator () |
void | _copyZerobufArray (const void *data, size_t size, size_t arrayNum) |
Definition at line 12 of file imageJPEG.h.
|
finalvirtual |
Remove unused holes from the zerobuf.
Compaction only occurs if the current allocation exceeds the relative threshold to the optimal size, that is, if unusedMemory divided by optimalMemory is above the threshold.
threshold | the compaction threshold |
Reimplemented from zerobuf::Zerobuf.
|
inlinefinalvirtual |
Implements zerobuf::Zerobuf.
Definition at line 42 of file imageJPEG.h.
|
inlinefinalvirtual |
Implements zerobuf::Zerobuf.
Definition at line 40 of file imageJPEG.h.