SIRIUS 7.5.0
Electronic structure library and applications
|
Serialize and deserialize objects. More...
#include <serializer.hpp>
Public Member Functions | |
void | copyin (uint8_t const *ptr__, size_t nbytes__) |
Copy n bytes into a serialization stream. More... | |
void | copyout (uint8_t *ptr__, size_t nbytes__) |
Copy n bytes from the serialization stream. More... | |
void | send_recv (mpi::Communicator const &comm__, int source__, int dest__) |
std::vector< uint8_t > const & | stream () const |
Private Attributes | |
size_t | pos_ {0} |
Position in the stream. This is used during unpacking. More... | |
std::vector< uint8_t > | stream_ |
Data stream is represendted as a sequence of characters. More... | |
Serialize and deserialize objects.
Definition at line 35 of file serializer.hpp.
|
inline |
Copy n bytes into a serialization stream.
Definition at line 45 of file serializer.hpp.
|
inline |
Copy n bytes from the serialization stream.
When data is copied out, the position inside a stream is shifted to n bytes forward.
Definition at line 55 of file serializer.hpp.
|
inline |
Definition at line 61 of file serializer.hpp.
|
inline |
Definition at line 92 of file serializer.hpp.
|
private |
Position in the stream. This is used during unpacking.
Definition at line 39 of file serializer.hpp.
|
private |
Data stream is represendted as a sequence of characters.
Definition at line 41 of file serializer.hpp.