public void H5Pset_object_flush_cbTestSWMR2() { hid_t fapl = H5P.create(H5P.FILE_ACCESS); Assert.IsTrue(fapl >= 0); H5F.flush_cb_t cb = flush_func; Assert.IsTrue( H5P.set_object_flush_cb(fapl, cb, IntPtr.Zero) >= 0); H5F.flush_cb_t check_cb = null; IntPtr check_ptr = new IntPtr(4711); Assert.IsTrue( H5P.get_object_flush_cb(fapl, ref check_cb, ref check_ptr) >= 0); Assert.IsTrue(check_cb == cb); Assert.IsTrue(check_ptr == IntPtr.Zero); Assert.IsTrue(H5P.close(fapl) >= 0); }