Esempio n. 1
0
// Recursively removes padding from within a compound datatype.
// herr_t H5Tpack( hid_t dtype_id )
func (t *CompType) Pack() error {
	err := C.H5Tpack(t.id)
	return togo_err(err)
}
Esempio n. 2
0
// Pack recursively removes padding from within a compound datatype.
// This is analogous to C struct packing and will give a space-efficient
// type on the disk. However, using this may require type conversions
// on more machines, so may be a worse option.
func (t *CompoundType) Pack() error {
	return h5err(C.H5Tpack(t.id))
}