Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
SerializeUtil.h File Reference

Go to the source code of this file.

Namespaces

 zserio
 

Functions

template<typename T , typename ALLOC , typename... ARGS, typename std::enable_if<!std::is_enum< T >::value &&is_allocator< ALLOC >::value, int >::type = 0>
BasicBitBuffer< ALLOC > zserio::serialize (T &object, const ALLOC &allocator, ARGS &&... arguments)
 
template<typename T , typename ALLOC = typename detail::allocator_chooser<T>::type, typename... ARGS, typename std::enable_if<!std::is_enum< T >::value &&!is_first_allocator< typename std::decay< ARGS >::type... >::value, int >::type = 0>
BasicBitBuffer< ALLOC > zserio::serialize (T &object, ARGS &&... arguments)
 
template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if< std::is_enum< T >::value, int >::type = 0>
BasicBitBuffer< ALLOC > zserio::serialize (T enumValue, const ALLOC &allocator=ALLOC())
 
template<typename T , typename ALLOC , typename... ARGS>
std::enable_if<!std::is_enum< T >::value, T >::type zserio::deserialize (const BasicBitBuffer< ALLOC > &bitBuffer, ARGS &&... arguments)
 
template<typename T , typename ALLOC >
std::enable_if< std::is_enum< T >::value, T >::type zserio::deserialize (const BasicBitBuffer< ALLOC > &bitBuffer)
 
template<typename T , typename ALLOC , typename... ARGS, typename std::enable_if<!std::is_enum< T >::value &&is_allocator< ALLOC >::value, int >::type = 0>
vector< uint8_t, ALLOC > zserio::serializeToBytes (T &object, const ALLOC &allocator, ARGS &&... arguments)
 
template<typename T , typename ALLOC = typename detail::allocator_chooser<T>::type, typename... ARGS, typename std::enable_if<!std::is_enum< T >::value &&!is_first_allocator< typename std::decay< ARGS >::type... >::value, int >::type = 0>
vector< uint8_t, ALLOC > zserio::serializeToBytes (T &object, ARGS &&... arguments)
 
template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if< std::is_enum< T >::value, int >::type = 0>
vector< uint8_t, ALLOC > zserio::serializeToBytes (T enumValue, const ALLOC &allocator=ALLOC())
 
template<typename T , typename... ARGS>
std::enable_if<!std::is_enum< T >::value, T >::type zserio::deserializeFromBytes (Span< const uint8_t > buffer, ARGS &&... arguments)
 
template<typename T >
std::enable_if< std::is_enum< T >::value, T >::type zserio::deserializeFromBytes (Span< const uint8_t > buffer)
 
template<typename T , typename... ARGS>
void zserio::serializeToFile (T &object, const std::string &fileName, ARGS &&... arguments)
 
template<typename T , typename... ARGS>
zserio::deserializeFromFile (const std::string &fileName, ARGS &&... arguments)
 

Detailed Description

It provides help methods for serialization and deserialization of generated objects.

These utilities are not used by generated code and they are provided only for user convenience.

Note
Please note that file operations allocate memory as needed and are not designed to use allocators.

Definition in file SerializeUtil.h.