Hi Rosen,

On Jul 2, 2010, at 7:51 PM, Rosen Diankov wrote:

> Hi all,
> 
> Please show us a C/C++ code example that initializes HDF5 objects from
> in-memory data without using/opening any files.
> 
> Our applications needs to be run very fast and we cannot afford the
> transfer to file just so hdf5 can process it.

        You probably want to look into the "core" file driver: 
H5Pset_fapl_core().

        Quincey

> Basically we want to do:
> 
> void* buffer;
> int buffer_size
> // initialize buffer
> file = H5Fcreate(...)
> H5F_write_binary_data_to_file(file,buffer,buffer_size)
> 
> // read the contents
> dataset = H5Dopen(file, DATASETNAME);
> ...
> 
> 
> thank you,
> rosen,
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to