My recollection is that that file_image interface is intended to provide ultimate control over memory allocation re-allocation, etc.
So, I believe it *should* be possible to do what you are attempting though I don't know the interface in detail enough to suggest options. Mark From: Iván Cores González <[email protected]<mailto:[email protected]>> Reply-To: HDF Users Discussion List <[email protected]<mailto:[email protected]>> Date: Friday, December 5, 2014 10:02 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [Hdf-forum] Changing HF5get_file_image() behaviour with callbacks Dear sir/madam, I am working with HDF5 and the "HDF5 File Image Operations". I write a HDF5 file in memory (using the H5FD_CORE driver) and after that I recover a copy of the file with the HF5get_file_image() function. Could be possible obtain the original memory (not a copy) using the HF5set_file_image_callbacks function? It is possible redefine the "image_malloc" and "image_memcpy" functions to avoid do a copy? I am reading the documentation and I am not sure if it is possible ... Yours faithfully, Ivan Cores. _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
