The messages inside object headers describe what an object is and where its data lives. This page follows the HDF5 File Format Specification version 3.0, section IV, read 2026-11-12.
Message types
| Type | Message | Type | Message |
|---|---|---|---|
0000 | NIL (padding) | 000C | Attribute |
0001 | Dataspace | 000D | Object comment |
0002 | Link info | 000E | Object modification time (old) |
0003 | Datatype | 000F | Shared message table |
0004 | Fill value (old) | 0010 | Object header continuation |
0005 | Fill value | 0011 | Symbol table (old-style group) |
0006 | Link | 0012 | Object modification time |
0007 | External data files | 0013 | B-tree ‘K’ values |
0008 | Data layout | 0014 | Driver info |
0009 | Bogus (for testing) | 0015 | Attribute info |
000A | Group info | 0016 | Object reference count |
000B | Filter pipeline | 0017 | File space info |
Dataspace
Version (1 or 2), dimensionality (1), flags (1: bit 0 maximum sizes present), in version 2 a type (0 scalar, 1 simple, 2 null); then the current size of each dimension (L bytes each) and, with the flag, the maximum sizes (all ones for unlimited).
Datatypes
The first 4 bytes are the class and version (bits 0–3 class, 4–7 version) and 24 bits of class flags; then the element size (4 bytes) and class properties.
| Class | Type | Flags and properties |
|---|---|---|
| 0 | Fixed-point (integer) | Byte order (bit 0: 0 little, 1 big), padding bits, bit 3 signed; bit offset, bit precision. |
| 1 | Floating-point | Byte order (bits 0 and 6, including VAX order), padding, mantissa normalisation, sign position; bit offset, precision, exponent and mantissa location and size, exponent bias. |
| 2 | Time | Byte order; bit precision. |
| 3 | String | Padding (0 null-terminated, 1 null-padded, 2 space-padded), character set (0 ASCII, 1 UTF-8). |
| 4 | Bit field | Byte order, padding; bit offset, precision. |
| 5 | Opaque | Length of an ASCII tag, then the tag. |
| 6 | Compound | Number of members; each a name, byte offset and member type (versions 1–2 also hold array dimensions). |
| 7 | Reference | Type: 0 object reference, 1 dataset region reference (version 4 adds newer kinds). |
| 8 | Enumerated | Number of members; base type, names, values. |
| 9 | Variable-length | Type (0 sequence, 1 string), padding, character set; base type. Values are stored in the global heap. |
| 10 | Array | Dimensionality, sizes; base type. |
Data layout
Version 3 and 4 layout messages give a class:
| Class | Layout | Properties |
|---|---|---|
| 0 | Compact | Size and the raw data, inside the object header. |
| 1 | Contiguous | Address and size of one block of data. |
| 2 | Chunked | Chunk dimensions and an index of the chunks. |
| 3 | Virtual | Version 4: a mapping onto parts of other datasets, kept in the global heap. |
Version 4 chunked layouts name a chunk index type: 1 single chunk, 2 implicit (no
index; chunks in order), 3 fixed array, 4 extensible array, 5 version 2 B-tree.
Versions 1 to 3 always use a version 1 B-tree (TREE, node type 1).
Filter pipeline
Each filter: ID (2), name length (2, omitted for predefined filters in version 2), flags (2: bit 0 optional), number of client values (2), name, values (4 bytes each).
| ID | Filter |
|---|---|
| 1 | Deflate (zlib) |
| 2 | Shuffle: regroups bytes by position within each element |
| 3 | Fletcher-32 checksum |
| 4 | Szip |
| 5 | N-bit |
| 6 | Scale-offset |
| Up to 32,767 | Reserved for filters supported by The HDF Group and for third-party filters given an identifier on request; the specification documents only 1 to 6. |
| 32,768 to 65,535 | Private or testing use; not tracked. |
Links and fill values
- Link message (new-style groups): version 1, flags (size of the name length field, creation order present, link type present, character set present), link type (present only when not a hard link: 1 soft, 64 external, 65 to 255 user-defined), creation order (8 bytes), character set (present only when not ASCII: 1 UTF-8), name length, name, then the object address, or the soft link path, or the external file and object names.
- Groups store links either as link messages in the header (compact) or in a fractal heap indexed by a version 2 B-tree (dense), as the link info message says.
- Fill value message (version 3): flags for when space is allocated (early, late, incremental), when the fill value is written (on allocation, never, if set), whether it is undefined and whether a value follows; then the size and value.
Link message, field by field
From the HDF5 File Format Specification version 3.0, section IV.A.2.g (source
H5.format.3.0.dox in the HDFGroup/hdf5 repository, develop branch, read
2026-11-13). Message type 0x0006, optional, may be repeated. It carries one link
of a group that stores its links compactly (the fractal heap address of the link info
message is the undefined address) or one link record in the group's fractal heap (dense).
| Field | Size | Meaning |
|---|---|---|
| Version | 1 | 1. |
| Flags | 1 | Bits 0 to 1: size of the Length of Link Name field (0: 1 byte, 1: 2 bytes, 2: 4 bytes, 3: 8 bytes). Bit 2: Creation Order present. Bit 3: Link Type present (set when the link is not a hard link). Bit 4: Link Name Character Set present (set when not ASCII). Bits 5 to 7 reserved (zero). |
| Link type | 1, optional (bit 3) | 0 hard link (should never be stored), 1 soft link, 2 to 63 reserved for internal use, 64 external link, 65 to 255 reserved, available for user-defined link types. |
| Creation order | 8, optional (bit 2) | Index of the link's creation within the group, starting at 0 and rising by one for each link added; removing a link does not renumber the others. |
| Link name character set | 1, optional (bit 4) | 0 ASCII (should never be stored), 1 UTF-8. |
| Length of link name | 1, 2, 4 or 8 (bits 0 to 1) | Length of the name. |
| Link name | variable | The name, not NUL-terminated. |
| Link information | variable | Hard: the address of the object header (Size of Offsets bytes). Soft: a 2-byte length, then that many bytes of the soft link value (not NUL-terminated). External: a 2-byte length, then that many bytes: the first byte is the version in the upper 4 bits and flags in the lower 4 (both zero in this document), followed by two NUL-terminated strings with no padding, the file name and the full path of the object in that file. User-defined: a 2-byte length, then that many bytes of user data. |
Filter pipeline message, field by field
From section IV.A.2.l of the same specification and source. Message type 0x000B, optional, not repeated. In datasets it lists the filters applied to raw data (only chunked storage uses it); in groups the filters for the group's fractal heap.
| Part | Version 1 | Version 2 |
|---|---|---|
| Header | Version (1, value 1), Number of Filters (1; at most 32), Reserved (2 zero bytes), Reserved (4 zero bytes), then the filter descriptions | Version (1, value 2), Number of Filters (1; at most 32), then the filter descriptions (the reserved bytes of version 1 are not present) |
| Filter identification | 2 bytes. 0 to 32,767 are reserved for filters supported by The HDF Group and third-party filters registered on request; 32,768 to 65,535 are for non-distributed or testing use and are not tracked. IDs 0 reserved, 1 deflate, 2 shuffle, 3 fletcher32, 4 szip, 5 nbit, 6 scaleoffset (library 1.8.0). | |
| Name length | 2 bytes: length of the optional NUL-terminated ASCII name including the NUL, padded with NULs to a multiple of 8; 0 if no name | 2 bytes, same meaning, but absent for filters with ID below 256 (together with the name) |
| Flags | 2 bytes. Bit 0: optional filter (if it fails on output it is silently skipped). Bits 1 to 15 reserved (zero). | |
| Number of client data values | 2 bytes. | |
| Name | Present when Name Length is non-zero: the name, padded to a multiple of 8 bytes. | |
| Client data | An array of 4-byte integers passed to the filter. | |
| Padding | 4 zero bytes when the number of client data values is odd | not present |
The specification does not define the client data of any filter; for the layouts of third-party filters see their own documents (the HDF Group's registered-filters list; the Zstandard, Blosc, bzip2 and quantisation filters used by NetCDF-4 are described on the NetCDF-4 mapping page).
The N-bit, scale-offset and szip filters
The specification names these three filters but does not describe them. What follows is read from the library source
and the standard it implements, in the HDFGroup/hdf5 repository (develop branch, release 2.2.0) and the libaec repository
(release 1.1.8): src/H5Znbit.c, src/H5Zscaleoffset.c, src/H5Zszip.c;
libaec src/sz_compat.c, src/decode.c and include/szlib.h; and
CCSDS 121.0-B-3, Lossless Data Compression (Blue Book, August 2020, public.ccsds.org). The
description is of decoding; each filter's client values are the 4-byte integers of the filter pipeline
message, and the library rewrites them when the dataset is created, so a file holds the full list.
N-bit (ID 5)
Each value is packed to its precision bits, with no padding between values, in one bit stream, most significant bit of each byte first. Client values: [0] the number of values, [1] 1 when nothing is packed (the chunk is stored as it is), [2] the number of elements in the chunk, [3] the class of the element (1 atomic, 2 array, 3 compound), [4] the size of an element in bytes, then the description of the datatype starting at value 4:
| Type | Values (starting at the size slot) |
|---|---|
| Atomic (integer or floating point) | size, byte order (0 little, 1 big), precision in bits, bit offset of the lowest significant bit |
| Array | total size, class of the base type (1 to 4), then the base type's values; the number of base elements is total size / base size |
| Compound | size, number of members, then for each member: byte offset, class, then its values starting at its size |
| No-op (class 4) | size: a type the filter does not pack; its bytes go into the stream as they are (8 bits each) |
To decode an atomic element of precision p and offset o: read p bits as a number,
shift it left by o, and store it in the element's bytes in the datatype's byte order; the other bits are zero.
Arrays and compounds are unpacked member by member in order, each to its place in the element, still from the
one stream. The parameters must satisfy p ≤ size × 8 and p + o ≤ size × 8.
(H5Z__nbit_decompress_one_atomic, _one_byte, _one_array, _one_compound,
_one_nooptype.)
Scale-offset (ID 6)
Client values (20): [0] scale type (0 floating point with a decimal scale factor, 1 floating point with a fixed number of bits, 2 integer), [1] the scale factor (a signed integer: the decimal scale for type 0, the number of bits otherwise), [2] elements in the chunk, [3] class (0 integer, 1 floating point), [4] size in bytes, [5] sign (0 unsigned, 1 two's complement), [6] byte order (0 little, 1 big), [7] 1 when a fill value is defined, [8] to [19] the fill value, 4 bytes to a value, least significant first. Scale type 1 is rejected by the library itself.
When the scale factor of an integer (or a fixed-bits float) equals size × 8 the chunk is stored untouched. Otherwise the chunk starts with 21 bytes: minbits (4 bytes, little-endian), the size of minval (1 byte, at most 8 are used), minval (little-endian, 16 bytes reserved), then the elements packed to minbits bits each in one bit stream, most significant bit first, with no padding. When minbits equals size × 8 the elements follow unpacked, as bytes in the order of the machine that wrote them (the decoder here assumes little-endian), and are then put in the datatype's byte order. When minbits is 0 every element is the minimum.
- Integers: element = packed value + minval, wrapped to the element size. If a fill value is defined, a packed value whose bits are all ones (2minbits − 1) stands for the fill value instead.
- Floating point, decimal scale factor D (type 0): element = (packed value as a signed integer, converted to the float type) / 10D + min, computed in the float type, where min is the first 4 (float) or 8 (double) bytes of minval read as a float. A packed value of all ones is the fill value when one is defined. Only 4 and 8-byte floats are supported.
(H5Z__filter_scaleoffset, H5Z__scaleoffset_decompress and its helpers,
H5Z_scaleoffset_postdecompress_1, _2, _3 and the get_filval macros.)
Szip (ID 4)
Client values: [0] the options mask, [1] pixels per block, [2] bits per pixel, [3] pixels per scanline. The mask bits
(szlib.h): 1 allow k = 13, 2 chip, 4 entropy coding (EC), 8 LSB first, 16 MSB first, 32 nearest-neighbour
preprocessing (NN), 128 raw; the library sets 8 or 16 from the datatype's byte order when the dataset is created. The decoder
uses only MSB (the byte order of the samples) and NN. The chunk is 4 bytes holding the uncompressed length, little-endian,
then the compressed stream.
The stream is the CCSDS 121.0-B-3 adaptive entropy coder as libaec decodes it for the szip interface
(SZ_BufftoBuffDecompress): the block size is the pixels per block (even, at most 256); a reference sample interval is
ceil(pixels per scanline / pixels per block) blocks, that is one scanline padded up to whole blocks (the scanline is at
most 4096 pixels); samples are unsigned and the basic (not restricted) option set is used. Bits per pixel of 32 and 64 are
coded as 8-bit samples of the byte planes: plane j holds byte j of every word in memory order. Samples of 17 to 32
bits are stored as 4 bytes, 9 to 16 as 2, up to 8 as 1.
| Sample bits n | ID key length |
|---|---|
| 1 to 8 | 3 |
| 9 to 16 | 4 |
| 17 to 32 | 5 |
Each coded data set (CDS) starts with the ID key. With preprocessing, the first block of every reference sample interval carries an n-bit reference sample and codes only J − 1 samples; every other block codes J. Key values (Table 5-1 of the standard), with m the all-ones key:
| Key | Option | Data that follows |
|---|---|---|
| 0 | Low entropy: one more bit selects (0) the zero-block option or (1) the second extension | Zero block: the reference sample if any, then a fundamental sequence (FS: f zero bits and a one) giving the number of all-zero blocks: f + 1 when f < 4; 5 ⇒ “remainder of segment” (the zero blocks up to the end of the 64-block segment, or of the interval); f when f > 5. Second extension: the reference sample if any, then one FS for each pair of samples, giving γ = (a + b)(a + b + 1)/2 + b; a block with a reference sample pairs a zero with its first coded sample. |
| 1 to m − 1 | Split-sample option k = key − 1 (key 1 is the plain FS option) | The reference sample if any, an FS for each sample's value shifted right by k, then the k low bits of each sample, in order |
| m | No compression | J samples of n bits (the first is the reference sample when there is one) |
The decoded numbers δ are prediction errors, mapped to non-negative values (4.4 of the standard). The inverse
(decode.c, flush_*), per sample, with the previous output sample x̂, xmax = 2n − 1 and
θ = min(x̂, xmax − x̂): if δ ≤ 2θ the output is
x̂ + δ/2 for even δ and x̂ − (δ + 1)/2 for odd; otherwise it is
x̂ + δ − θ when x̂ is in the lower half and x̂ − (δ − θ) in the upper
(the library tests x̂ against xmax/2 + 1). The first sample of each interval is the reference sample, unchanged. The
output is cut to the stored uncompressed length after the scanline padding is removed (remove_padding).
Datatype details by class
Specification section IV.A.2.d (read 2026-11-13). The first 4 bytes are the version (high 4 bits) and class (low 4); then three bytes of class bit fields and the 4-byte element size. Bits not defined are zero. Datatype message versions: 1 compound members with explicit array fields (early library); 2 array types; 3 VAX byte order and tighter packing of other classes; 4 the revised reference type; 5 complex numbers (version 0 is never used). Values the specification marks reserved: reference type 2–15 below version 4, and 5–15 in version 4; reference encoding version 0 unused and 2–15 reserved; variable-length type 2–15, padding 3–15 and character set 2–15; reserved (zero) bit ranges are 16–23 for compound and enumeration, 4–23 for reference below version 4, 8–23 for reference version 4, and 12–23 for variable-length. Checked against the specification's datatype class tables for classes 6 to 10 on 2026-11-13.
| Class | Bit fields | Properties |
|---|---|---|
| 0 fixed-point | Bit 0 byte order (0 little); bits 1, 2 the low and high padding bit values copied into unused bits; bit 3 signed (two's complement); 4–23 reserved. | Bit offset (2), bit precision (2): the offset is the number of bits to the right of the value (set to the low pad), the precision with the element size gives the bits to its left (set to the high pad). |
| 1 floating-point | Byte order in bits 6 and 0 together: 00 little, 01 big, 10 reserved, 11 VAX. Bits 1, 2, 3 the low, high and internal padding bit values. Bits 4–5 mantissa normalisation: 0 none, 1 most significant bit always set (except 0.0), 2 not stored but implied set, 3 reserved. Bits 8–15 sign bit position (least significant bit is 0). Others reserved. | Bit offset (2), bit precision (2), exponent location (1), exponent size (1), mantissa location (1), mantissa size (1), exponent bias (4). |
| 2 time | Bit 0 byte order; the rest reserved. | Bit precision (2). |
| 3 string | Bits 0–3 padding: 0 null-terminated, 1 null-padded, 2 space-padded (Fortran style); 4–7 character set: 0 ASCII, 1 UTF-8; others reserved. | None. |
| 4 bit field | Bit 0 byte order; bits 1, 2 padding as in class 0; the rest reserved. | Bit offset (2), bit precision (2). |
| 5 opaque | Bits 0–7: the length of the ASCII tag in bytes. | The tag, NUL-terminated and NUL-padded to a multiple of 8 bytes. |
| 6 compound | Bits 0–15 the number of members. | The member definitions one after another. Version 1: name (NUL-padded to a multiple of 8), byte offset (4), dimensionality (1; 0 for a scalar), 3 reserved, dimension permutation (4; never implemented, zero), 4 reserved, four dimension sizes (4 each), then the member's datatype message. Version 2: name (padded to a multiple of 8), byte offset (4), member datatype message. Version 3: name (not padded), byte offset (the fewest bytes that hold the element size: 1 below 256, 2 up to 65,535, and so on), member datatype message. |
| 7 reference | Version below 4: bits 0–3 type: 0 object reference (H5R_OBJECT1), 1 dataset region reference (H5R_DATASET_REGION1). Version 4: bits 0–3 type: 2 object (H5R_OBJECT2, may be in another file), 3 dataset region (H5R_DATASET_REGION2), 4 attribute (H5R_ATTR); bits 4–7 the encoding version (1). A region reference's data is a global heap ID. | None. |
| 8 enumeration | Bits 0–15 the number of name/value pairs. | The base datatype message, then the names (NUL-terminated; padded to a multiple of 8 in versions 1 and 2, not padded in 3; in no particular order), then the values in the same order, packed, each the size of the base type. |
| 9 variable-length | Bits 0–3 type: 0 sequence, 1 string. Bits 4–7 padding (string only, as class 3). Bits 8–11 character set (string only: 0 ASCII, 1 UTF-8). Zero for a sequence. | The parent datatype message (a string's parent is the native unsigned char). |
| 10 array | None. | Version 2: dimensionality (1), 3 reserved, the dimension sizes (4 each), permutation indices (4 each; unsupported, set to the position minus one), base type. Version 3: dimensionality (1), the sizes, base type (no reserved bytes, no permutation). |
| 11 complex | Bit 0 homogeneous (only homogeneous is supported: both parts are the same floating-point type); bits 1–2 form: 0 rectangular, 1 polar, 2 exponential, 3 reserved (only rectangular is supported). | The parent floating-point datatype message. |
The datatype class list above stops at 10; class 11 (complex numbers, with datatype message version 5) is the one the current specification adds.
Dataspace and layout versions
- Dataspace version 1: version, dimensionality, flags (bit 0: maximum sizes present; bit 1: permutation indices present), a reserved byte and 4 more reserved bytes; then the current size of each dimension (L), the maximum sizes (L each; the special all-ones value is unlimited; absent means equal to the current size) and the permutation indices (L each; never implemented, so absent). Version 2 drops the permutation and the reserved bytes, and adds the type byte: 0 scalar (one dimensionless element), 1 simple (rank above 0), 2 null (no elements).
- Layout versions 1 and 2: version, dimensionality (1; for chunked storage one more than the dataset's rank, so 2 for a one-dimensional dataset), class (1: 0 compact, 1 contiguous, 2 chunked), 5 reserved bytes, the data address (O; absent for compact; may be undefined in version 2: not yet allocated), the dimension sizes (4 each; the whole array for compact and contiguous, one chunk for chunked, in elements, slowest first), the element size (4, chunked only), and for compact the data size (4) and the data. Version 1 always allocates space when the dataset is made (library 1.4 and earlier); version 2 allocates when needed (1.6.x).
- Layout version 3 (library 1.6.3 and later): version, class, then class-specific properties. Compact: size (2) and the data. Contiguous: address (O), size (L). Chunked: dimensionality (1; rank + 1), address of the v1 B-tree (O), the chunk dimension sizes (4 each) and the element size (4). Addresses may be undefined (not allocated).
- Layout version 4 (1.10.0 and later): class 3 virtual is added. Chunked: flags (1; bit 0
DONT_FILTER_PARTIAL_BOUND_CHUNKS: no filter on a partial edge chunk; bit 1SINGLE_INDEX_WITH_FILTER: a filtered chunk for the single-chunk index), dimensionality (1), the encoded length of each dimension size (1), the dimension sizes (that many bytes each), the chunk index type (1: 1 single chunk, 2 implicit, 3 fixed array, 4 extensible array, 5 version 2 B-tree), index information, then the index address (O; undefined if not allocated). Index information: single chunk, only when the chunk is filtered: size of the filtered chunk (L) and its filter mask (4); implicit: none; fixed array: page bits (1); extensible array: max bits (1), index elements (1), min pointers (1), min elements (1), page bits (1); version 2 B-tree: node size (4), split percent (1), merge percent (1). Virtual: the address (O) of the global heap collection that holds the mapping (see global heap) and the object index (4). - Fill value versions: 1 and 2 hold space allocation time, fill write time and a defined flag (2 omits the size and value when the flag is 0); 3 packs them into one flags byte (bits 0–1 allocation time, 2–3 write time, 4 undefined, 5 defined; 4 and 5 not both). The old fill value message (type 4) is a size (4) and the value, and is written only for compatibility with libraries before 1.6.0. Write times: 0 on allocation, 1 never, 2 only if set by the user. Allocation times: 1 early, 2 late, 3 incremental (used with chunked data).
The other header messages
| Type | Message | Layout |
|---|---|---|
0000 | NIL | Ignored; stands for a deleted message. Any length. |
0002 | Link info | Version 0 (1), flags (1: bit 0 creation order tracked, bit 1 indexed), maximum creation index (8, if bit 0), fractal heap address (O), v2 B-tree address for the name index (O), v2 B-tree address for the creation order index (O, if bit 1). The addresses are undefined if the group is empty or stores its links compactly. The heap holds dense links as link messages. |
0007 | External data files | Version 1 (1; 0 never used), 3 reserved, allocated slots (2), used slots (2), local heap address (O) of the file names (the name at offset 0 is the empty string), then the slots: name offset in the heap (L), offset in the external file (L), reserved size in the external file (L). A name is a URL, protocol:port//host/file, with the defaults file: and localhost; a leading-slash-less name is relative to the application's directory. The size may exceed the real file, since reads past its end give zeros. |
0009 | Bogus | 4 bytes 0xdeadbeef, a test for unknown messages; never in a valid file. |
000A | Group info | Version 0 (1), flags (1: bit 0 link phase change values stored, bit 1 estimated entry information stored), maximum compact links (2) and minimum dense links (2) if bit 0, estimated number of entries (2, default 4) and estimated link name length (2, default 8) if bit 1. |
000C | Attribute | Version 1: version (1), reserved (1), name size, datatype size, dataspace size (2 each), then name, datatype and dataspace each padded to a multiple of 8 bytes, then the data (unpadded). Version 2 (library 1.6): flags (1; bit 0 datatype shared, bit 1 dataspace shared) in place of the reserved byte, nothing padded, and a shared datatype or dataspace is replaced by a shared-message encoding. Version 3 (1.8): adds the name's character set (1: 0 ASCII, 1 UTF-8) after the three sizes. Names are NUL-terminated and sizes count the NUL. Attributes in a header should be under 64 KB (larger ones are possible from 1.8). Names on one object must be unique. |
000D | Object comment | A NUL-terminated ASCII string. |
000E | Modification time (old) | Year (4 ASCII digits), month, day, hour, minute, second (2 ASCII digits each), 2 reserved zero bytes; UTC. Deprecated, not written after library 1.6.0. |
000F | Shared message table | Only in the superblock extension: version 0 (1), address of the shared message table (O), number of indexes (1). |
0010 | Object header continuation | Offset (O) and length (L) of a block of more messages. A version 1 continuation block is just a series of message records (type, size, flags, 3 reserved bytes, data). A version 2 block starts with the signature OCHK, then message records (type 1, size 2, flags 1, creation order 2 if the header's bit 2 is set, data), possibly a gap (smaller than a message prefix, left when a message moved), and a checksum (4). |
0011 | Symbol table | Address of the group's v1 B-tree (O) and of its local heap (O): an "old style" group. |
0012 | Modification time | Version 1 (1; 0 never used), 3 reserved, seconds since the UNIX epoch (4, unsigned, UTC). Library 1.6.1 and later. |
0013 | B-tree ‘K’ values | Only in the superblock extension: version 0 (1), indexed storage internal node K (2), group internal node K (2), group leaf node K (2). |
0014 | Driver info | Only in the superblock extension: version 0 (1), driver identification (8 ASCII bytes, no terminator), driver information size (2), the driver's own information (see the file driver info block). |
0015 | Attribute info | Version 0 (1), flags (1: bit 0 creation order tracked, bit 1 indexed), maximum creation index (2, if bit 0), fractal heap address (O), attribute name v2 B-tree address (O), creation order v2 B-tree address (O, if bit 1). For densely stored attributes, each stored as an attribute message in the heap. |
0016 | Object reference count | Version 0 (1), reference count (4): the number of hard links. Only in version 2 or later object headers; absent means 1. |
0017 | File space info | Version 0 (library 1.10.0 only; deprecated and mapped to 1 on read): strategy (1: 1 H5F_FILE_SPACE_ALL_PERSIST, 2 ALL, 3 AGGR_VFD, 4 VFD), threshold (L), and six free-space manager addresses (O) for super, B-tree, raw, global heap, local heap and object header types, present only for strategy 1. Version 1 (1.10.1 and later): strategy (1: 0 H5F_FSPACE_STRATEGY_FSM_AGGR the default, 1 PAGE, 2 AGGR, 3 NONE), persisting free space (1, boolean), free-space section threshold (L), file space page size (L), page-end metadata threshold (2), EOA before allocating the self-referential managers (O), then six small-size and six large-size free-space manager addresses (O each), present only if free space persists. |
The free-space strategies: free-space managers (track unallocated sections), two
aggregators (contiguous blocks, one for metadata and one for raw data, set by
H5Pset_meta_block_size and H5Pset_small_data_block_size) and
the virtual file driver, which extends the file. Paged aggregation (1.10.1) packs
small metadata and raw allocations into fixed-size aligned pages. Space is not
persisted across opens unless requested with H5Pset_file_space_strategy.
Raw data is in C order, the last dimension fastest; variable-length data is in the
global heap; an object reference in the data is the address of the object header (O
bytes).