29 static_assert(std::is_trivially_copyable_v<T>,
"Component type must be trivially copyable for serialization");
31 const auto* p =
reinterpret_cast<const uint8_t*
>(&value);
51 static_assert(std::is_trivially_copyable_v<T>,
"Component type must be trivially copyable for deserialization");
54 throw std::runtime_error(
"InputArchive: out of data");
Archive that serializes trivially-copyable values into a byte buffer.
Definition RegistryArchive.hpp:19
void operator()(const T &value)
Append value to the internal buffer as raw bytes.
Definition RegistryArchive.hpp:27
std::vector< uint8_t > buffer
Definition RegistryArchive.hpp:21