29#include <boost/iostreams/copy.hpp>
30#include <boost/iostreams/filter/gzip.hpp>
31#include <boost/iostreams/filtering_streambuf.hpp>
33#include <Ice/OutputStream.h>
53 std::tie(_begin, _end) = _out.finished();
83 Ice::OutputStream _out;
84 const Ice::Byte* _begin{
nullptr};
85 const Ice::Byte* _end{
nullptr};
106 const std::string_view sv(
reinterpret_cast<const char*
>(_ser.begin()), _ser.size());
108 std::stringstream istr;
110 boost::iostreams::filtering_istreambuf in;
111 in.push(boost::iostreams::gzip_compressor());
113 std::stringstream ostr;
114 boost::iostreams::copy(in, ostr);
This file offers overloads of toIce() and fromIce() functions for STL container types.
const char * begin() const
void serialize(const T &obj)
ObjectToCompressedIceBlobSerializer(const T &obj)
ObjectToCompressedIceBlobSerializer()=default
const Ice::Byte * end() const
void serialize(const T &obj)
ObjectToIceBlobSerializer(const T &obj)
std::ptrdiff_t size() const
ObjectToIceBlobSerializer()=default
const Ice::Byte * begin() const