![]() |
fpmas 1.5
|
#include <datapack.h>
Static Public Member Functions | |
| template<typename PackType > | |
| static std::size_t | size (const PackType &p, const std::array< T, N > &array) |
| template<typename PackType > | |
| static void | to_datapack (PackType &pack, const std::array< T, N > &array) |
| template<typename PackType > | |
| static std::array< T, N > | from_datapack (const PackType &pack) |
std::array Serializer specialization.
| Serialization scheme | |||
|---|---|---|---|
| item_1 | item_2 | ... | item_n |
| T | value type |
| N | array size |
|
inlinestatic |
Returns the buffer size required to serialize the specified array, i.e. the sum of p.size(item) for each item in array.
|
inlinestatic |
Serializes array to pack.
Each item is serialized using the PackType::put(const T&) method.
| pack | destination BasicObjectPack |
| array | array to serialize |
|
inlinestatic |
Unserializes an array from pack.
Each item of the array is unserialized using the PackType::get<T>() method.
| pack | source BasicObjectPack |