func openTable(id C.hid_t, name string) (*Table, error) { c_name := C.CString(name) defer C.free(unsafe.Pointer(c_name)) hid := C.H5PTopen(id, c_name) if err := checkID(hid); err != nil { return nil, err } return newPacketTable(hid), nil }
func openTable(id C.hid_t, name string) (*Table, error) { c_name := C.CString(name) defer C.free(unsafe.Pointer(c_name)) hid := C.H5PTopen(id, c_name) err := h5err(C.herr_t(int(hid))) if err != nil { return nil, err } table := newPacketTable(hid) return table, err }
// Opens an existing packet table. // hid_t H5PTopen( hid_t loc_id, const char *dset_name ) func (g *Group) OpenTable(name string) (*Table, error) { c_name := C.CString(name) defer C.free(unsafe.Pointer(c_name)) hid := C.H5PTopen(g.id, c_name) err := togo_err(C.herr_t(int(hid))) if err != nil { return nil, err } table := new_packet_table(hid) return table, err }