27 #ifndef Hypertable_Common_Serializable_h
28 #define Hypertable_Common_Serializable_h
81 virtual void encode(uint8_t **bufp)
const;
89 virtual void decode(
const uint8_t **bufp,
size_t *remainp);
117 virtual void decode_internal(uint8_t version,
const uint8_t **bufp,
size_t *remainp) = 0;
125 #endif // Hypertable_Common_Serializable_h
virtual void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp)=0
Reads serialized representation of object from a buffer.
virtual size_t encoded_length_internal() const =0
Returns internal serialized length.
virtual size_t encoded_length() const
Returns serialized object length.
virtual void encode(uint8_t **bufp) const
Writes serialized representation of object to a buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
Mixin class that provides a standard serialization interface.
virtual uint8_t encoding_version() const =0
Returns encoding version.
virtual void encode_internal(uint8_t **bufp) const =0
Writes serialized representation of object to a buffer.