Initializing hdf5 structure from in-memory data

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.

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,

Hi Rosen,

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

···

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

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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

hi Quincey,

We have looked into the core driver, my question was, what are the API
calls to make in order to initialize it with the raw hdf5 data from
memory.

We just want a small snippet of code to show us how to do this.......
any language would do

thank you,
rosen,

···

2010/7/6 Quincey Koziol <koziol@hdfgroup.org>:

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 &quot;core&quot; 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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

Hi Rosen,

hi Quincey,

We have looked into the core driver, my question was, what are the API
calls to make in order to initialize it with the raw hdf5 data from
memory.

  Ah! Unfortunately, we don't support this currently. It is in our ticket system and will get scheduled for implementation according to it's relative priority against other tickets. Of course, funding for implementing the feature or high-quality patches are welcome. :slight_smile:

  Quincey

···

On Jul 6, 2010, at 12:15 PM, Rosen Diankov wrote:

We just want a small snippet of code to show us how to do this.......
any language would do

thank you,
rosen,

2010/7/6 Quincey Koziol <koziol@hdfgroup.org>:

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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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