예제 #1
0
        public void H5Fget_obj_idsTest2()
        {
            IntPtr buf = H5.allocate_memory(new IntPtr(10 * sizeof(hid_t)), 0);

            Assert.IsFalse(
                H5F.get_obj_ids(Utilities.RandomInvalidHandle(),
                                H5F.OBJ_ALL, new IntPtr(10), buf).ToInt32() > 0);
            Assert.IsTrue(H5.free_memory(buf) >= 0);
        }
예제 #2
0
        public void H5Fget_obj_idsTest1()
        {
            IntPtr buf = H5.allocate_memory(new IntPtr(10 * sizeof(hid_t)), 0);

            Assert.IsTrue(
                H5F.get_obj_ids(m_v0_class_file, H5F.OBJ_ALL, new IntPtr(10),
                                buf).ToInt32() > 0);
            Assert.IsTrue(
                H5F.get_obj_ids(m_v2_class_file, H5F.OBJ_ALL, new IntPtr(10),
                                buf).ToInt32() > 0);

            Assert.IsTrue(H5.free_memory(buf) >= 0);
        }