2014-12-16 18:21:56 +00:00
|
|
|
# http://www.hdfgroup.org/HDF5/doc/H5.format.html#Superblock
|
|
|
|
constant identifier="HDF5";
|
|
|
|
|
|
|
|
ascii[8] signature : dump;
|
|
|
|
uint8 versionNumberOfSuperblock : dump;
|
|
|
|
|
2018-07-31 12:30:05 +00:00
|
|
|
if (versionNumberOfSuperblock == 0 ||
|
|
|
|
versionNumberOfSuperblock == 1 ||
|
|
|
|
versionNumberOfSuperblock == 2 ||
|
|
|
|
versionNumberOfSuperblock == 3)
|
|
|
|
{
|
|
|
|
uint8 sizeOfOffsets : dump;
|
|
|
|
uint8 sizeOfLength : dump;
|
|
|
|
uint8 fileConsistencyFlags : dump;
|
2014-12-16 18:21:56 +00:00
|
|
|
|
2018-07-31 12:30:05 +00:00
|
|
|
if(sizeOfOffsets == 8) {
|
|
|
|
uint64_little_endian baseAddress : dump;
|
|
|
|
uint64_little_endian superblockExtensionAddress : dump;
|
|
|
|
uint64_little_endian endOfFileAddress : dump;
|
|
|
|
uint64_little_endian rootGroupObjectHeaderAddress : dump;
|
|
|
|
}
|
2014-12-16 18:21:56 +00:00
|
|
|
|
2018-07-31 12:30:05 +00:00
|
|
|
if(sizeOfOffsets == 4) {
|
|
|
|
uint32_little_endian baseAddress : dump;
|
|
|
|
uint32_little_endian superblockExtensionAddress : dump;
|
|
|
|
uint32_little_endian endOfFileAddress : dump;
|
|
|
|
uint32_little_endian rootGroupObjectHeaderAddress : dump;
|
|
|
|
}
|
2014-12-16 18:21:56 +00:00
|
|
|
|
2018-07-31 12:30:05 +00:00
|
|
|
#ascii[4] superblockChecksum;
|
2014-12-16 18:21:56 +00:00
|
|
|
}
|