Ejemplo n.º 1
0
        public void H5Sselect_validTest1()
        {
            hsize_t[] dims  = { 10, 20, 30 };
            hid_t     space = H5S.create_simple(dims.Length, dims, dims);

            Assert.IsTrue(space > 0);
            hsize_t[] start = { 0, 0, 0 };
            hsize_t[] count = { 1, 1, 1 };
            hsize_t[] block = { 1, 2, 3 };
            Assert.IsTrue(
                H5S.select_hyperslab(space, H5S.seloper_t.SET, start, null,
                                     count, block) >= 0);
            Assert.IsTrue(H5S.select_valid(space) > 0);

            start[1] = 50;
            Assert.IsTrue(
                H5S.select_hyperslab(space, H5S.seloper_t.OR, start, null,
                                     count, block) >= 0);
            Assert.IsTrue(H5S.select_valid(space) == 0);

            Assert.IsTrue(H5S.close(space) >= 0);
        }
Ejemplo n.º 2
0
 public void H5Sselect_validTest2()
 {
     Assert.IsFalse(
         H5S.select_valid(Utilities.RandomInvalidHandle()) >= 0);
 }