![]() |
fpmas 1.5
|
#include <datapack.h>
Static Public Member Functions | |
| template<typename PackType > | |
| static std::size_t | size (const PackType &) |
| template<typename PackType > | |
| static std::size_t | size (const PackType &, const T &) |
| template<typename PackType > | |
| static void | to_datapack (PackType &pack, const T &item) |
| template<typename PackType > | |
| static T | from_datapack (const PackType &pack) |
Serializer implementation only available for fundamental types.
| Serialization Scheme |
|---|
| raw binary value |
| T | fundamental type (std::size_t, std::int32_t, unsigned int...) |
|
inlinestatic |
Returns the buffer size required to serialize an instance of T.
This fundamental type implementation returns sizeof(T).
|
inlinestatic |
Equivalent to size(const PackType&).
|
inlinestatic |
Writes item to the pack buffer using a pack.write() operation.
| pack | destination BasicObjectPack |
| item | source data |
|
inlinestatic |
Reads a instance of T from the pack buffer using a pack.read() operation.
| pack | source BasicObjectPack |