Exemplo n.º 1
0
        public void H5Pget_mdc_image_configTest1()
        {
            hid_t fapl = H5P.create(H5P.FILE_ACCESS);

            Assert.IsTrue(fapl >= 0);
            H5AC.cache_image_config_t conf =
                new H5AC.cache_image_config_t();
            conf.version = H5AC.CURR_CACHE_IMAGE_CONFIG_VERSION;
            IntPtr config_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(conf));

            Marshal.StructureToPtr((H5AC.cache_image_config_t)conf,
                                   config_ptr, false);
            Assert.IsTrue(H5P.get_mdc_image_config(fapl, config_ptr) >= 0);
            Assert.IsTrue(H5P.close(fapl) >= 0);
            Marshal.FreeHGlobal(config_ptr);
        }
Exemplo n.º 2
0
        public void H5Pget_mdc_image_configTest1()
        {
            hid_t fapl = H5P.create(H5P.FILE_ACCESS);

            Assert.IsTrue(fapl >= 0);
            H5AC.cache_image_config_t conf =
                new H5AC.cache_image_config_t(0);
            int    sz         = Marshal.SizeOf(conf.GetType());
            IntPtr config_ptr = Marshal.AllocHGlobal(sz);

            Marshal.StructureToPtr((H5AC.cache_image_config_t)conf,
                                   config_ptr, false);
            Assert.IsTrue(H5P.get_mdc_image_config(fapl, config_ptr) >= 0);
            Assert.IsTrue(H5P.close(fapl) >= 0);
            Marshal.FreeHGlobal(config_ptr);
        }