76 [[nodiscard]] std::string
name()
const;
83 file(
const std::byte *buf,
size_t size);
90 file(std::span<std::byte>
const &buf) :
file(buf.data(), buf.size()) {}
96 file(std::vector<std::byte>
const &buf) :
file(buf.data(), buf.size()) {}
99 [[nodiscard]] std::vector<std::byte>
as_buffer()
const;
A handle to an HDF5 file.
std::string name() const
Get the name of the file.
file(std::span< std::byte > const &buf)
Constructor to create a buffered memory file from a byte buffer.
std::vector< std::byte > as_buffer() const
Get a copy of the associated byte buffer.
file(std::string const &name, char mode)
Constructor to open an existing file or to create a new file on disk.
void flush()
Flush the file by calling H5Fflush.
file(std::vector< std::byte > const &buf)
Constructor to create a buffered memory file from a byte buffer.
file()
Default constructor creates a buffered memory file.
A generic handle for HDF5 objects.
Provides a generic handle for HDF5 objects.