Exemple #1
0
        public void H5Soffset_simpleTest1()
        {
            hsize_t[] dims  = { 10, 10 };
            hid_t     space = H5S.create_simple(dims.Length, dims, null);

            Assert.IsTrue(space > 0);

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

            hssize_t[] offset = { 0, 0 };
            Assert.IsTrue(H5S.offset_simple(space, offset) >= 0);

            Assert.IsTrue(H5S.close(space) >= 0);
        }
Exemple #2
0
 public void H5Soffset_simpleTest2()
 {
     Assert.IsFalse(
         H5S.offset_simple(Utilities.RandomInvalidHandle(), null) >= 0);
 }