Dear All,
I am writing an packet table from C with a compound dataset in the form of:
// C
struct A
{
int x;
int y;
};
struct Container
{
int offset;
struct A element;
}
I am later reading the same dataset into .NET using HDF5DotNet. However, I
cannot read the elements if the .NET structs have the same form (with a
nested struct). However, it works correctly if I define a .NET struct as:
// C# - works
public struct Container
{
public int offset;
public int x;
public int y;
}
// C# - does not work
public struct A
{
public int x;
public int y;
}
public struct Container
{
public int offset;
public A element;
}
Does anybody know any way to use the same form in C# (nested structs) as
with C?
Many thanks.
Martin
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org