示例#1
0
 public void H5Gget_info_by_indexTest2()
 {
     H5G.info_t info = new H5G.info_t();
     Assert.IsTrue(H5G.get_info_by_idx(m_v0_test_file, ".",
                                       H5.index_t.CRT_ORDER, H5.iter_order_t.NATIVE, 0,
                                       ref info) < 0);
     Assert.IsTrue(H5G.get_info_by_idx(m_v2_test_file, ".",
                                       H5.index_t.CRT_ORDER, H5.iter_order_t.NATIVE, 0,
                                       ref info) < 0);
 }
示例#2
0
        public void H5Gget_info_by_indexTest1()
        {
            hid_t group = H5G.create(m_v0_test_file, "A");

            Assert.IsTrue(group >= 0);
            H5G.info_t info = new H5G.info_t();
            Assert.IsTrue(H5G.get_info_by_idx(m_v0_test_file, ".",
                                              H5.index_t.NAME, H5.iter_order_t.NATIVE, 0,
                                              ref info) >= 0);
            Assert.IsTrue(H5G.close(group) >= 0);

            group = H5G.create(m_v2_test_file, "A");
            Assert.IsTrue(group >= 0);
            Assert.IsTrue(H5G.get_info_by_idx(m_v2_test_file, ".",
                                              H5.index_t.NAME, H5.iter_order_t.NATIVE, 0,
                                              ref info) >= 0);
            Assert.IsTrue(H5G.close(group) >= 0);
        }