// Close releases and terminates access to an attribute. func (s *Attribute) Close() error { if s.id == 0 { return nil } err := h5err(C.H5Aclose(s.id)) s.id = 0 return err }
// Close releases and terminates access to an attribute. func (s *Attribute) Close() error { if s.id > 0 { err := C.H5Aclose(s.id) s.id = 0 return h5err(err) } return nil }