Zserio C++ runtime library
1.2.0
Built for Zserio 2.16.0
|
#include "zserio/BitStreamReader.h"
#include "zserio/BitStreamWriter.h"
#include "zserio/FileUtil.h"
#include "zserio/Traits.h"
#include "zserio/Vector.h"
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> | |
T | zserio::deserializeFromFile (const std::string &fileName, ARGS &&... arguments) |
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.
Definition in file SerializeUtil.h.