22#ifndef LIBH5_SERIALIZATION_HPP
23#define LIBH5_SERIALIZATION_HPP
48 [[nodiscard]] std::vector<std::byte>
serialize(T
const &x) {
64 [[nodiscard]] T
deserialize(std::vector<std::byte>
const &buf) {
A handle to an HDF5 file.
Provides a handle to an HDF5 file.
Provides a generic interface for reading/writing data from/to various HDF5 objects.
T h5_read(group g, std::string const &key)
Generic implementation for reading from an HDF5 dataset/subgroup.
void h5_write(group g, std::string const &name, T const &x) H5_REQUIRES(std
Write a scalar to an HDF5 dataset.
T deserialize(std::vector< std::byte > const &buf)
Deserialize an object from a byte buffer.
std::vector< std::byte > serialize(T const &x)
Serialize an object to a byte buffer.