コード例 #1
0
ファイル: H5Fget_obj_ids.cs プロジェクト: ywadea/HDF.PInvoke
        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
ファイル: H5Fget_obj_ids.cs プロジェクト: ywadea/HDF.PInvoke
        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);
        }