示例#1
0
        public void H5Aget_info_by_idxTest1()
        {
            H5A.info_t info = new H5A.info_t();
            hid_t      att  = H5A.create(m_v2_test_file, "A", H5T.IEEE_F64LE,
                                         m_space_scalar);

            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);
            att = H5A.create(m_v2_test_file, "B", H5T.IEEE_F64LE,
                             m_space_scalar);
            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);

            Assert.IsTrue(H5A.get_info_by_idx(m_v2_test_file, ".",
                                              H5.index_t.NAME, H5.iter_order_t.NATIVE, 0,
                                              ref info) >= 0);
            Assert.IsTrue(H5A.get_info_by_idx(m_v2_test_file, ".",
                                              H5.index_t.NAME, H5.iter_order_t.NATIVE, 1,
                                              ref info) >= 0);

            att = H5A.create(m_v0_test_file, "A", H5T.IEEE_F64LE,
                             m_space_scalar);
            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);
            Assert.IsTrue(H5A.get_info_by_idx(m_v0_test_file, ".",
                                              H5.index_t.NAME, H5.iter_order_t.NATIVE, 0,
                                              ref info) >= 0);

            Assert.IsFalse(H5A.get_info_by_idx(m_v0_test_file, ".",
                                               H5.index_t.NAME, H5.iter_order_t.NATIVE, 1,
                                               ref info) >= 0);
        }
示例#2
0
 public void H5Aget_info_by_idxTest2()
 {
     H5A.info_t info = new H5A.info_t();
     Assert.IsFalse(
         H5A.get_info_by_idx(Utilities.RandomInvalidHandle(), ".",
                             H5.index_t.NAME, H5.iter_order_t.NATIVE, 1024,
                             ref info) >= 0);
 }