std::vector<char> &dest_buffer,
const bool allow_compression)
{
+ // the data is never compressed when we can't use zlib.
+ (void)allow_compression;
+
// see if the object is small and copyable via memcpy. if so, use
// this fast path. otherwise, we have to go through the BOOST
// serialization machinery
# endif
#endif
{
- (void)allow_compression;
const size_t previous_size = dest_buffer.size();
dest_buffer.resize(previous_size + sizeof(T));
const std::vector<char>::const_iterator &cend,
const bool allow_compression)
{
+ // the data is never compressed when we can't use zlib.
+ (void)allow_compression;
+
// see if the object is small and copyable via memcpy. if so, use
// this fast path. otherwise, we have to go through the BOOST
// serialization machinery
# endif
#endif
{
- (void)allow_compression;
Assert(std::distance(cbegin, cend) == sizeof(T), ExcInternalError());
T object;
std::memcpy(&object, &*cbegin, sizeof(T));