Struct hdf5::Writer
[−]
[src]
pub struct Writer<'l> { /* fields omitted */ }
A writer.
Writers are suitable for storing large arrays.
Methods
impl<'l> Writer<'l>
[src]
fn new(file: &'l File, name: &str, dimensions: &[usize]) -> Writer<'l>
Create a writer.
If there exists a dataset with the same name, it will be removed from the file structure, and a new dataset will be created. This operation, however, does not reclaim the corresponding space. See Section 5.5.2 in HDF5 User’s Guide for further details.
fn write<T: IntoData>(
&mut self,
data: T,
position: &[usize],
size: &[usize]
) -> Result<()>
&mut self,
data: T,
position: &[usize],
size: &[usize]
) -> Result<()>
Write data.
The function writes a chunk of data at a particular position with a particular size. The datatype should stay unchanged from one invocation to another.