public void H5Sget_select_elem_pointlistTest1() { hsize_t[] dims = { 1, 2, 3 }; hid_t space = H5S.create_simple(dims.Length, dims, dims); Assert.IsTrue(space > 0); hsize_t[] sel = { 0, 1, 2, 0, 2, 2 }; Assert.IsTrue( H5S.select_elements(space, H5S.seloper_t.SET, new IntPtr(2), sel) >= 0); hsize_t[] buf = new hsize_t[sel.Length]; Assert.IsTrue(H5S.get_select_elem_pointlist(space, 0, 2, buf) >= 0); for (int i = 0; i < buf.Length; ++i) { Assert.IsTrue(sel[i] == buf[i]); } Assert.IsTrue(H5S.close(space) >= 0); }
public void H5Sget_select_elem_pointlistTest2() { Assert.IsFalse( H5S.get_select_elem_pointlist(Utilities.RandomInvalidHandle(), 0, 0, null) >= 0); }