When using H5TBmake_table without a predefined C struct, users must manually supply type_size — the total size in bytes of one table record. The discussion on the Forum, illustrates the potential confusion.
type_size must be computed from the field types and offsets, but no utility exists to do this. A helper function can be added to accept the field type array and field offset array and return the correct record size. The record size is the offset of the last field plus its H5Tget_size(), plus any trailing padding bytes implied by the offsets.
When using H5TBmake_table without a predefined C struct, users must manually supply type_size — the total size in bytes of one table record. The discussion on the Forum, illustrates the potential confusion.
type_size must be computed from the field types and offsets, but no utility exists to do this. A helper function can be added to accept the field type array and field offset array and return the correct record size. The record size is the offset of the last field plus its H5Tget_size(), plus any trailing padding bytes implied by the offsets.