31 #ifndef BINARYDECODER_H_ 32 #define BINARYDECODER_H_ 35 #include "../Exception.h" 67 static int32_t decodeInteger(
const std::vector<char> &encodedData, uint32_t &position);
68 static int32_t decodeInteger(
const std::vector<uint8_t> &encodedData, uint32_t &position);
69 static int64_t decodeInteger64(
const std::vector<char> &encodedData, uint32_t &position);
70 static int64_t decodeInteger64(
const std::vector<uint8_t> &encodedData, uint32_t &position);
71 static uint8_t decodeByte(
const std::vector<char> &encodedData, uint32_t &position);
72 static uint8_t decodeByte(
const std::vector<uint8_t> &encodedData, uint32_t &position);
73 std::string decodeString(
const std::vector<char> &encodedData, uint32_t &position);
74 std::string decodeString(
const std::vector<uint8_t> &encodedData, uint32_t &position);
75 static std::vector<uint8_t> decodeBinary(
const std::vector<char> &encodedData, uint32_t &position);
76 static std::vector<uint8_t> decodeBinary(
const std::vector<uint8_t> &encodedData, uint32_t &position);
77 static bool decodeBoolean(
const std::vector<char> &encodedData, uint32_t &position);
78 static bool decodeBoolean(
const std::vector<uint8_t> &encodedData, uint32_t &position);
79 static double decodeFloat(
const std::vector<char> &encodedData, uint32_t &position);
80 static double decodeFloat(
const std::vector<uint8_t> &encodedData, uint32_t &position);
This is the base library main class.
Definition: BaseLib.h:95
Definition: BaseLib.cpp:34
Definition: BinaryDecoder.h:46
Definition: BinaryDecoder.h:51
std::shared_ptr< Ansi > _ansiConverter
Definition: BinaryDecoder.h:83
BinaryDecoderException(std::string message)
Definition: BinaryDecoder.h:48
Base class for all exceptions defined in Homegear.
Definition: Exception.h:41