4 #include <zerobuf/Zerobuf.h> 5 #include <zerobuf/Vector.h> 15 typedef ::zerobuf::Vector< uint8_t >
Data;
18 void setData( uint8_t
const * value,
size_t size );
19 std::vector< uint8_t > getDataVector()
const;
20 void setData(
const std::vector< uint8_t >& value );
21 std::string getDataString()
const;
22 void setData(
const std::string& value );
24 void compact(
float threshold = 0.1f )
final;
26 ImageJPEG(
const std::vector< uint8_t >& dataValue );
29 ImageJPEG( const ::zerobuf::Zerobuf& rhs );
30 explicit ImageJPEG( ::zerobuf::AllocatorPtr allocator );
34 { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
38 std::string getTypeName()
const final {
return "zerobuf::render::ImageJPEG"; }
39 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0xb1d4981bbad94bccull, 0x525934fdd68ba35eull ); }
41 static size_t ZEROBUF_STATIC_SIZE() {
return 20; }
43 static size_t ZEROBUF_NUM_DYNAMICS() {
return 1; }
46 void _parseJSON(
const Json::Value& json )
final;
47 void _createJSON( Json::Value& json )
const final;
void compact(float threshold=0.1f) final
Remove unused holes from the zerobuf.
Zero-copy, zero-serialize, zero-hassle protocol buffers.
size_t getZerobufNumDynamics() const final
size_t getZerobufStaticSize() const final
Base class for all Zerobuf serializable objects.