Ejemplo n.º 1
0
        public void H5Pget_virtual_srcspaceTestVDS1()
        {
            hid_t vds = H5D.open(m_vds_class_file, "VDS");

            Assert.IsTrue(vds >= 0);

            hid_t dcpl = H5D.get_create_plist(vds);

            Assert.IsTrue(dcpl >= 0);

            IntPtr count = IntPtr.Zero;

            Assert.IsTrue(H5P.get_virtual_count(dcpl, ref count) >= 0);
            Assert.IsTrue(3 == count.ToInt32());

            for (int i = 0; i < count.ToInt32(); ++i)
            {
                size_t index    = new size_t(i);
                hid_t  srcspace = H5P.get_virtual_srcspace(dcpl, index);
                Assert.IsTrue(srcspace >= 0);

                Assert.IsTrue(H5S.get_select_type(srcspace) ==
                              H5S.sel_type.ALL);

                Assert.IsTrue(H5S.close(srcspace) >= 0);
            }

            Assert.IsTrue(H5P.close(dcpl) >= 0);
            Assert.IsTrue(H5D.close(vds) >= 0);
        }