The output from h5dump is:
ATTRIBUTE "ORIGIN" {
DATATYPE H5T_STRING {
STRSIZE H5T_VARIABLE;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
DATA {
(0): "BASIC"
}
}
And I tried:
int byteLength = Marshal.SizeOf(typeof(IntPtr));
IntPtr intPtr = Marshal.AllocHGlobal(byteLength);
H5A.read(aid, typeId, intPtr);
string result = Marshal.PtrToStringAnsi(intPtr);
And result contains "\u0001\u0002\b\n\n".
Matt
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5