![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Archive that deserializes from a buffer via memcpy. More...
#include <memcpy_archive.hpp>
Inheritance diagram for Utils::MemcpyIArchive:
Collaboration diagram for Utils::MemcpyIArchive:Public Types | |
| using | is_loading = boost::mpl::true_ |
| using | is_saving = boost::mpl::false_ |
Public Member Functions | |
| MemcpyIArchive (std::span< char > buf) | |
| std::size_t | bytes_read () const |
| Number of bytes read from the buffer. | |
| template<class T > | |
| MemcpyIArchive & | operator& (T &value) |
Archive that deserializes from a buffer via memcpy.
Can only process types that have a static serialization size, e.g. that serialize to the same number of bytes independent of the state of the object. This can either be automatically detected for types that are trivially copyable, or by explicitly assured by specializing is_statically_serializable to std::true_type.
Definition at line 167 of file memcpy_archive.hpp.
| using Utils::MemcpyIArchive::is_loading = boost::mpl::true_ |
Definition at line 172 of file memcpy_archive.hpp.
| using Utils::MemcpyIArchive::is_saving = boost::mpl::false_ |
Definition at line 173 of file memcpy_archive.hpp.
|
inlineexplicit |
| buf | Buffer to read from. |
Definition at line 178 of file memcpy_archive.hpp.
|
inline |
Number of bytes read from the buffer.
Definition at line 184 of file memcpy_archive.hpp.
|
inline |
Definition at line 190 of file memcpy_archive.hpp.