31 #ifndef BINARYENCODER_H_ 32 #define BINARYENCODER_H_ 52 static void encodeInteger(std::vector<char> &encodedData, int32_t integer);
53 static void encodeInteger(std::vector<uint8_t> &encodedData, int32_t integer);
54 static void encodeInteger64(std::vector<char> &encodedData, int64_t integer);
55 static void encodeInteger64(std::vector<uint8_t> &encodedData, int64_t integer);
56 static void encodeByte(std::vector<char> &encodedData, uint8_t byte);
57 static void encodeByte(std::vector<uint8_t> &encodedData, uint8_t byte);
58 static void encodeString(std::vector<char> &packet,
const std::string &
string);
59 static void encodeString(std::vector<uint8_t> &encodedData,
const std::string &
string);
60 static void encodeBinary(std::vector<char> &packet,
const std::vector<uint8_t> &data);
61 static void encodeBinary(std::vector<uint8_t> &encodedData,
const std::vector<uint8_t> &data);
62 static void encodeBoolean(std::vector<char> &encodedData,
bool boolean);
63 static void encodeBoolean(std::vector<uint8_t> &encodedData,
bool boolean);
64 static void encodeFloat(std::vector<char> &encodedData,
double floatValue);
65 static void encodeFloat(std::vector<uint8_t> &encodedData,
double floatValue);
static void encodeInteger64(std::vector< char > &encodedData, int64_t integer)
Definition: BinaryEncoder.cpp:51
This is the base library main class.
Definition: BaseLib.h:95
Definition: BaseLib.cpp:34
static void encodeBinary(std::vector< char > &packet, const std::vector< uint8_t > &data)
Definition: BinaryEncoder.cpp:81
Definition: BinaryEncoder.h:43
static void encodeInteger(std::vector< char > &encodedData, int32_t integer)
Definition: BinaryEncoder.cpp:39
static void encodeString(std::vector< char > &packet, const std::string &string)
Definition: BinaryEncoder.cpp:71
static void encodeByte(std::vector< char > &encodedData, uint8_t byte)
Definition: BinaryEncoder.cpp:63
static void encodeFloat(std::vector< char > &encodedData, double floatValue)
Definition: BinaryEncoder.cpp:99
static void encodeBoolean(std::vector< char > &encodedData, bool boolean)
Definition: BinaryEncoder.cpp:91