|
My Project
|
Packaging for pod data. More...
#include <MemPacker.hpp>
Static Public Member Functions | |
| static std::size_t | packSize (const T &data) |
| Calculates the pack size for a POD. | |
| static std::size_t | packSize (const T *, std::size_t n) |
| Calculates the pack size for an array of POD. | |
| static void | pack (const T &data, std::vector< char > &buffer, std::size_t &position) |
| Pack a POD. | |
| static void | pack (const T *data, std::size_t n, std::vector< char > &buffer, std::size_t &position) |
| Pack an array of POD. | |
| static void | unpack (T &data, const std::vector< char > &buffer, std::size_t &position) |
| Unpack a POD. | |
| static void | unpack (T *data, std::size_t n, const std::vector< char > &buffer, std::size_t &position) |
| Unpack an array of POD. | |
Packaging for pod data.
|
inlinestatic |
Pack a POD.
| data | The variable to pack |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
|
inlinestatic |
Pack an array of POD.
| data | The array to pack |
| n | Length of array |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
|
inlinestatic |
Calculates the pack size for a POD.
| data | The data to pack |
|
inlinestatic |
Calculates the pack size for an array of POD.
| data | The array to pack |
| n | Length of array |
|
inlinestatic |
Unpack a POD.
| data | The variable to unpack |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |
|
inlinestatic |
Unpack an array of POD.
| data | The array to unpack |
| n | Length of array |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |