NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
NOTE: The netcdf-hdf
mailing list is no longer active. The list archives are made available for historical reasons.
There's something I just don't understand here. Suppose, on machine A, that I have an array of C struct data, of type "struct s1", and using HOFFSET, I create a compound type. Then I write a bunch of data. Then, on machine B, which packs its structs differently, I open the file, and read the data into an array of the same "struct s1". Will my data be messed up because of the different padding on machine B? I can see that, using the HOFFSET macro, you adjust the compound type to the actual struct when the file is created, because of the H5Tcompound_insert calls. But readers don't give you any information about the C struct they are reading into. How do you know the padding isn't different? Thanks! Ed -- Ed Hartnett -- ed@xxxxxxxxxxxxxxxx
netcdf-hdf
archives: