![]() |
fpmas 1.6
|
#include <datapack.h>
Static Public Member Functions | |
static std::size_t | size (const LightObjectPack &p) |
static std::size_t | size (const LightObjectPack &p, const T &item) |
static void | to_datapack (LightObjectPack &pack, const T &item) |
static T | from_datapack (const LightObjectPack &pack) |
Light version of the fpmas::io::datapack::Serializer.
By default, falls back to the Serializer<T> specialization, but custom LightSerializer specializations can be defined.
|
inlinestatic |
Returns the buffer size required to serialize any instance of T into p
using the regular Serializer<T>::size(const LightObjectPack&) method if it is available.
|
inlinestatic |
Returns the buffer size required to serialize item
into p
using the regular Serializer<T>::size(const LightObjectPack&, const T&) method.
|
inlinestatic |
Serializes item
into pack
using the regular Serializer<T>::to_datapack() specialization.
pack | destination pack |
item | item to serialize |
|
inlinestatic |
Unserializes data from pack
.
Data is unserialized using the regular Serializer<T>::from_datapack() specialization.
pack | source pack |