示例#1
0
文件: h5pt.go 项目: jonlawlor/go-hdf5
// Close closes an open packet table.
func (t *Table) Close() error {
	if t.id == 0 {
		return nil
	}
	err := h5err(C.H5PTclose(t.id))
	t.id = 0
	return err
}
示例#2
0
// Closes an open packet table.
// herr_t H5PTclose( hid_t table_id )
func (t *Table) Close() error {
	if t.id > 0 {
		err := togo_err(C.H5PTclose(t.id))
		if err != nil {
			t.id = 0
		}
		return err
	}
	return nil
}