OS Manuals

cereal_BinaryData(3)

cereal::BinaryData< T > - A wrapper around data that can be serialized in a binary fashion.

cereal::BinaryData< T >(3) Library Functions Manual cereal::BinaryData< T >(3)

cereal::BinaryData< T > - A wrapper around data that can be serialized in a binary fashion.

#include </home/build/include/cereal/details/helpers.hpp>


using PT


BinaryData (T &&d, uint64_t s)


PT data
pointer to beginning of data uint64_t size
size in bytes

(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.

struct cereal::BinaryData< T >"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.

Initial value:

typename std::conditional<std::is_const<typename std::remove_pointer<typename std::remove_reference<T>::type>::type>::value,

const void *,
void *>::type

Internally store the pointer as a void *, keeping const if created with a const pointer

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

cereal 1.3.2-r8 · enterprise-packages · ingested 2026-10-27