![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Archive that serializes to a buffer via memcpy. More...
#include <memcpy_archive.hpp>
Inheritance diagram for Utils::MemcpyOArchive:
Collaboration diagram for Utils::MemcpyOArchive:Public Types | |
| using | is_loading = boost::mpl::false_ |
| using | is_saving = boost::mpl::true_ |
Public Member Functions | |
| MemcpyOArchive (std::span< char > buf) | |
| std::size_t | bytes_written () const |
| Number of bytes written to the buffer. | |
| template<class T > | |
| MemcpyOArchive & | operator& (T &value) |
Archive that serializes to 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 202 of file memcpy_archive.hpp.
| using Utils::MemcpyOArchive::is_loading = boost::mpl::false_ |
Definition at line 206 of file memcpy_archive.hpp.
| using Utils::MemcpyOArchive::is_saving = boost::mpl::true_ |
Definition at line 207 of file memcpy_archive.hpp.
|
inlineexplicit |
| buf | Buffer to write to. |
Definition at line 212 of file memcpy_archive.hpp.
|
inline |
Number of bytes written to the buffer.
Definition at line 218 of file memcpy_archive.hpp.
|
inline |
Definition at line 224 of file memcpy_archive.hpp.
References operator<<().