![]() |
fpmas 1.5
|
#include <datapack.h>
Static Public Member Functions | |
| template<typename PackType > | |
| static std::size_t | size (const PackType &p, const std::vector< T > &vec) |
| template<typename PackType > | |
| static void | to_datapack (PackType &pack, const std::vector< T > &vec) |
| template<typename PackType > | |
| static std::vector< T > | from_datapack (const PackType &pack) |
std::vector Serializer specialization.
| Serialization Scheme | ||||
|---|---|---|---|---|
| vec.size() | item_1 | item_2 | ... | item_n |
|
inlinestatic |
Returns the buffer size required to serialize vec into p.
|
inlinestatic |
Serializes vec to pack.
Each item is serialized using the PackType::put(const T&) method.
| pack | destination BasicObjectPack |
| vec | vector to serialize |
|
inlinestatic |
Unserializes a vector from pack.
Each item of the vector is unserialized using the PackType::get<T>() method.
| pack | source BasicObjectPack |