39#include <boost/archive/iterators/base64_from_binary.hpp>
40#include <boost/archive/iterators/binary_from_base64.hpp>
41#include <boost/archive/iterators/transform_width.hpp>
42#include <boost/assign/list_of.hpp>
43#include <boost/iostreams/copy.hpp>
44#include <boost/iostreams/filter/zlib.hpp>
45#include <boost/iostreams/filtering_stream.hpp>
46#include <boost/lexical_cast.hpp>
56#define NEKTAR_VERSION "Unknown"
70 std::uint8_t data[
sizeof(std::uint32_t)];
73 number.data[0] = 0x00;
74 number.data[1] = 0x01;
75 number.data[2] = 0x02;
76 number.data[3] = 0x03;
80 case UINT32_C(0x00010203):
82 case UINT32_C(0x03020100):
84 case UINT32_C(0x02030001):
86 case UINT32_C(0x01000302):
106 return std::to_string(
sizeof(
void *) * 8);
113 std::string &base64string)
119 switch (compressedDataString.length() % 3)
122 compressedDataString +=
'\0';
125 compressedDataString +=
'\0';
130 typedef boost::archive::iterators::base64_from_binary<
131 boost::archive::iterators::transform_width<std::string::const_iterator,
134 base64string = std::string(base64_t(compressedDataString.begin()),
135 base64_t(compressedDataString.end()));
142 std::string &compressedDataString)
145 typedef boost::archive::iterators::transform_width<
146 boost::archive::iterators::binary_from_base64<
147 std::string::const_iterator>,
150 compressedDataString = std::string(binary_t(base64string.begin()),
151 binary_t(base64string.end()));
void Base64StrToBinaryStr(std::string &base64string, std::string &compressedDataString)
std::string GetBitSizeStr(void)
void BinaryStrToBase64Str(std::string &compressedDataString, std::string &base64string)
std::string GetCompressString(void)
const std::string EndianTypeMap[]
EndianType Endianness(void)