Go to the documentation of this file.
26 #include <string_view>
29 #include <boost/iostreams/filtering_streambuf.hpp>
30 #include <boost/iostreams/copy.hpp>
31 #include <boost/iostreams/filter/gzip.hpp>
33 #include <Ice/InputStream.h>
41 const auto first =
reinterpret_cast<const Ice::Byte*
>(sv.data());
42 const auto last = first + sv.size();
43 Ice::InputStream{std::make_pair(first, last)}.read(result);
63 return iceBlobToObject<T>(sv);
74 std::stringstream istr;
76 boost::iostreams::filtering_istreambuf in;
77 in.push(boost::iostreams::gzip_decompressor());
79 std::stringstream ostr;
102 return compressedIceBlobToObject<T>(sv);
T deserialize(const std::string_view &sv)
void compressedIceBlobToObject(T &result, const std::string_view &sv)
void deserialize(T &result, const std::string_view &sv)
T deserialize(const std::string_view &sv)
Use of this software is granted under one of the following two to be chosen freely by the user Boost Software License Version Marcin Kalicinski Permission is hereby free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this and transmit the and to prepare derivative works of the and to permit third parties to whom the Software is furnished to do all subject to the including the above license this restriction and the following must be included in all copies of the in whole or in and all derivative works of the unless such copies or derivative works are solely in the form of machine executable object code generated by a source language processor THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FITNESS FOR A PARTICULAR TITLE AND NON INFRINGEMENT IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN TORT OR ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE The MIT Marcin Kalicinski Permission is hereby free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to copy
void deserialize(T &result, const std::string_view &sv)
void iceBlobToObject(T &result, const std::string_view &sv)
This file offers overloads of toIce() and fromIce() functions for STL container types.