.TH "cereal::BinaryData< T >" 3 "Sat Oct 10 2026 08:08:15" "cereal" \" -*- nroff -*- .ad l .nh .SH NAME cereal::BinaryData< T > \- A wrapper around data that can be serialized in a binary fashion\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Types" .in +1c .ti -1c .RI "using \fBPT\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBBinaryData\fP (T &&d, uint64_t s)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "\fBPT\fP \fBdata\fP" .br .RI "pointer to beginning of data " .ti -1c .RI "uint64_t \fBsize\fP" .br .RI "size in bytes " .in -1c .SS "Related Symbols" (Note that these are not member symbols\&.) .in +1c .ti -1c .RI "template BinaryData< T > \fBbinary_data\fP (T &&data, size_t size)" .br .RI "Convenience function to create binary data for both const and non const pointers\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br 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\&. .SH "Member Typedef Documentation" .PP .SS "template using \fBcereal::BinaryData\fP< T >::PT" \fBInitial value:\fP .nf typename std::conditional::type>::type>::value, const void *, void *>::type .PP .fi Internally store the pointer as a void *, keeping const if created with a const pointer .SH "Author" .PP Generated automatically by Doxygen for cereal from the source code\&.