Skip to content

Add helper function to compute H5TB record size from field types and offsets #6414

@bmribler

Description

@bmribler

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.

Metadata

Metadata

Assignees

Labels

Component - ToolsCommand-line tools like h5dump, includes high-level tools
No fields configured for Enhancement.

Projects

Status

Planning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions