|
template<class INT_TYPE > |
static constexpr auto | ZigZagEncode (const INT_TYPE n) |
| Encode a signed integer using the zig zag method. More...
|
|
template<class UINT_TYPE > |
static constexpr auto | ZigZagDecode (const UINT_TYPE n) |
| Decode a signed integer using the zig zag method. More...
|
|
static constexpr uint32_t | MakeTag (const uint32_t field_number, const WireType type) |
| Create the tag of a field. More...
|
|
template<class UINT_TYPE > |
static Error | SerializeVarint (UINT_TYPE value, WriteBufferInterface &buffer) |
| This function converts a given value unsigned integer to a varint formatted data buffer. More...
|
|
template<class UINT_TYPE > |
static Error | DeserializeVarint (ReadBufferInterface &buffer, UINT_TYPE &value) |
| This function deserializes the following N bytes into a varint. More...
|
|
|
template<class UINT_TYPE > |
static Error | SerialzieFixedNoTag (UINT_TYPE value, WriteBufferInterface &buffer) |
| Serialize fields, without tags the given buffer. More...
|
|
template<class INT_TYPE > |
static Error | SerialzieSFixedNoTag (INT_TYPE value, WriteBufferInterface &buffer) |
| Serialize a signed fixed length field without the tag. More...
|
|
static Error | SerialzieFloatNoTag (float value, WriteBufferInterface &buffer) |
| Serialize a 32bit real value without tag. More...
|
|
static Error | SerialzieDoubleNoTag (double value, WriteBufferInterface &buffer) |
| Serialize a 64bit real value without tag. More...
|
|
|
template<class INT_TYPE > |
static Error | SerializeInt (uint32_t field_number, INT_TYPE value, WriteBufferInterface &buffer) |
| Serialize fields, including tags to the given buffer. More...
|
|
template<class UINT_TYPE > |
static Error | SerializeUInt (uint32_t field_number, UINT_TYPE value, WriteBufferInterface &buffer) |
|
template<class INT_TYPE > |
static Error | SerializeSInt (uint32_t field_number, INT_TYPE value, WriteBufferInterface &buffer) |
|
static Error | SerializeFixed (uint32_t field_number, uint32_t value, WriteBufferInterface &buffer) |
|
static Error | SerializeFixed (uint32_t field_number, uint64_t value, WriteBufferInterface &buffer) |
|
static Error | SerializeSFixed (uint32_t field_number, int32_t value, WriteBufferInterface &buffer) |
|
static Error | SerializeSFixed (uint32_t field_number, int64_t value, WriteBufferInterface &buffer) |
|
static Error | SerializeFloat (uint32_t field_number, float value, WriteBufferInterface &buffer) |
|
static Error | SerializeDouble (uint32_t field_number, double value, WriteBufferInterface &buffer) |
|
static Error | SerializeBool (uint32_t field_number, bool value, WriteBufferInterface &buffer) |
|
static Error | SerializeEnum (uint32_t field_number, uint32_t value, WriteBufferInterface &buffer) |
|
|
static Error | DeserializeTag (ReadBufferInterface &buffer, WireType &type, uint32_t &id) |
| Deserialize fields from the given buffer. More...
|
|
template<class UINT_TYPE > |
static Error | DeserializeUInt (ReadBufferInterface &buffer, UINT_TYPE &value) |
|
template<class INT_TYPE > |
static Error | DeserializeInt (ReadBufferInterface &buffer, INT_TYPE &value) |
|
template<class INT_TYPE > |
static Error | DeserializeSInt (ReadBufferInterface &buffer, INT_TYPE &value) |
|
template<class TYPE > |
static Error | DeserializeFixed (ReadBufferInterface &buffer, TYPE &value) |
|
template<class STYPE > |
static Error | DeserializeSFixed (ReadBufferInterface &buffer, STYPE &value) |
|
static Error | DeserializeFloat (ReadBufferInterface &buffer, float &value) |
|
static Error | DeserializeDouble (ReadBufferInterface &buffer, double &value) |
|
static Error | DeserializeBool (ReadBufferInterface &buffer, bool &value) |
|
template<class ENUM_TYPE > |
static Error | DeserializeEnum (ReadBufferInterface &buffer, ENUM_TYPE &value) |
|
This class combines functions to serialize and deserialize messages.