1 #ifndef CARMA_UI_RTD_COMMON_PROTOBUFUTIL_H
2 #define CARMA_UI_RTD_COMMON_PROTOBUFUTIL_H
4 #include <google/protobuf/message.h>
19 void compressLZMA(
const std::string &src,
const uint32_t level, std::string &dst);
36 void compressZLIB(
const std::string &src,
const uint32_t level, std::string &dst);
void compressZLIB(const std::string &src, const uint32_t level, std::string &dst)
Compress a buffer of bytes using ZLIB.
void decompressZLIB(const std::string &src, std::string &dst)
Decompress a buffer of bytes using ZLIB.
void compressLZMA(const std::string &src, const uint32_t level, std::string &dst)
Compress a buffer of bytes using LZMA.
bool serializeMessageToStdout(const ::google::protobuf::Message &msg, bool compress=true)
Serialize a Google Protocol Buffer to stdout in the following format:
void decompressLZMA(const std::string &src, std::string &dst)
Decompress a buffer of bytes using LZMA.