コード例 #1
0
ファイル: h5a.go プロジェクト: jonlawlor/go-hdf5
// 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
}
コード例 #2
0
ファイル: h5a.go プロジェクト: simleb/go-hdf5
// 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
}