Packaging for pod data.
More...
#include <MemPacker.hpp>
|
| static std::size_t | packSize (const T &data) |
| | Calculates the pack size for a POD. More...
|
| |
| static std::size_t | packSize (const T *, std::size_t n) |
| | Calculates the pack size for an array of POD. More...
|
| |
| static void | pack (const T &data, std::vector< char > &buffer, std::size_t &position) |
| | Pack a POD. More...
|
| |
| static void | pack (const T *data, std::size_t n, std::vector< char > &buffer, std::size_t &position) |
| | Pack an array of POD. More...
|
| |
| static void | unpack (T &data, const std::vector< char > &buffer, std::size_t &position) |
| | Unpack a POD. More...
|
| |
| static void | unpack (T *data, std::size_t n, const std::vector< char > &buffer, std::size_t &position) |
| | Unpack an array of POD. More...
|
| |
template<class T>
struct Opm::Serialization::detail::Packing< true, T >
Packaging for pod data.
◆ pack() [1/2]
Pack a POD.
- Parameters
-
| data | The variable to pack |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
◆ pack() [2/2]
Pack an array of POD.
- Parameters
-
| data | The array to pack |
| n | Length of array |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
◆ packSize() [1/2]
Calculates the pack size for a POD.
- Parameters
-
◆ packSize() [2/2]
Calculates the pack size for an array of POD.
- Parameters
-
| data | The array to pack |
| n | Length of array |
◆ unpack() [1/2]
Unpack a POD.
- Parameters
-
| data | The variable to unpack |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |
◆ unpack() [2/2]
Unpack an array of POD.
- Parameters
-
| data | The array to unpack |
| n | Length of array |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |
The documentation for this struct was generated from the following file: