h5cpp
0.5.0
A modern C++ wrapper for the HDF5 C library
|
variable length string buffer trait More...
#include <variable_length_string.hpp>
Public Types | |
using | BufferType = VarLengthStringBuffer< char > |
using | DataType = T |
Static Public Member Functions | |
static BufferType | to_buffer (const T &) |
create buffer with write data More... | |
static void | from_buffer (const BufferType &, DataType &) |
copy data to output More... | |
Trait implementing conversion functions between T and a particular variable length string buffer type.
using hdf5::VarLengthStringTrait< T >::BufferType = VarLengthStringBuffer<char> |
using hdf5::VarLengthStringTrait< T >::DataType = T |
|
inlinestatic |
Copies data from the buffer to the user data structure. It assumes that data is allocated and all data fits into it. We usually do not have to care about this as during the reading procedure a dataspace for the data sturcture is created and H5Dread checks whether or not the data fits into the structure.
|
inlinestatic |
This function creates a buffer instance which can be used for writing data to disk. The buffer must be allocated within this function to ensure that all the input data fits into it.