/// Returns the chunk shape if the dataset is chunked.
Returns the chunk shape if the dataset is chunked.
Returns the chunk shape if the dataset is chunked .
pub fn chunks(&self) -> Option<Vec<Ix>> {
        h5lock!({
            self.dcpl_id().ok().and_then(|dcpl_id| {
                if self.is_chunked() {
                    Some({
                        let ndim = self.ndim();
                        let mut dims: Vec<hsize_t> = Vec::with_capacity(ndim);
                        dims.set_len(ndim);
                        H5Pget_chunk(dcpl_id, ndim as _, dims.as_mut_ptr());
                        dims.iter().map(|&x| x as _).collect()
                    })
                } else {
                    None
                }
            })
        })
    }
pub fn chunks ( & self ) -> Option < Vec < Ix > > { h5lock ! ( { self dcpl_id ( ) ok ( ) and_then ( dcpl_id { if self is_chunked ( ) { Some ( { let ndim self ndim ( ) let mut dims Vec hsize_t Vec with_capacity ( ndim ) dims set_len ( ndim ) H5Pget_chunk ( dcpl_id ndim as dims as_mut_ptr ( ) ) dims iter ( ) map ( x x as ) collect ( ) } ) } else { None } } ) } ) }
Returns the chunk shape if the dataset is chunked.
Returns the chunk shape if the dataset is chunked .
&self