Hi Jens,

Thanks for the time.


> Am I correct in assuming that you write that sructure out as a
> "blob", i.e. not each element of the structure (and then the
> elements of the substructure), probably using the sizeof()
> the structure? If not please just forget about all of the
> rest;-)


I am not using a "blob" and indeed using a H5T_COMPOUND type that is
built using the constituents of the structure.

So, in the case of:


// C
struct A
{
  int x;
  int y;
};

struct Container
{
  int offset;
  struct A element;
}


It would be:

H5insert... H5T_NATIVE_INT32, H5T_NATIVE_INT32, H5T_NATIVE_INT32 (offset, x, y).

With this approach I can H5PTappend a Container* packet directly to
the compound type. Should I be creating nested compound types for the
nested structures?

Thanks again.

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

Reply via email to