|
cereal
A C++11 library for serialization
|
A wrapper around data that can be serialized in a binary fashion. More...
#include </build/libcereal-p0YfAJ/libcereal-1.3.2+dfsg/include/cereal/details/helpers.hpp>
Public Types | |
| using | PT |
Public Member Functions | |
| BinaryData (T &&d, uint64_t s) | |
Public Attributes | |
| PT | data |
| pointer to beginning of data | |
| uint64_t | size |
| size in bytes | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<class T> | |
| BinaryData< T > | binary_data (T &&data, size_t size) |
| Convenience function to create binary data for both const and non const pointers. | |
A wrapper around data that can be serialized in a binary fashion.
This class is used to demarcate data that can safely be serialized as a binary chunk of data. Individual archives can then choose how best represent this during serialization.
| using cereal::BinaryData< T >::PT |
Internally store the pointer as a void *, keeping const if created with a const pointer
1.15.0