Skip to content

Documentation updates#25

Open
gheber wants to merge 2 commits into
HDFGroup:mainfrom
gheber:updates/20260519
Open

Documentation updates#25
gheber wants to merge 2 commits into
HDFGroup:mainfrom
gheber:updates/20260519

Conversation

@gheber

@gheber gheber commented May 19, 2026

Copy link
Copy Markdown
Member
  • Added missing documentation for [f,g,l]heap.pk
  • Fixed section headings and formatting

@gheber gheber requested a review from vchoi-hdfgroup May 19, 2026 21:22
@gheber gheber self-assigned this May 19, 2026
@gheber gheber added the documentation Improvements or additions to documentation label May 19, 2026
Comment thread docs/generated/fheap.md
| Field | Description |
|-------|-------------|
| `raw` | `global_frhp_id_len` bytes containing a managed, huge, or tiny heap ID. Managed IDs encode a logical heap offset and object length; huge IDs encode either an inline address/size tuple or a version 2 B-tree key; tiny IDs embed the object bytes inline. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to give a bit more details about the different types of fractal heap IDs as in the format spec.

Comment thread docs/generated/fheap.md
| `signature` | 4-byte signature: 'F' 'H' 'D' 'B'. Must match exactly. |
| `version` | Direct block format version. Must be 0. |
| `hdr_addr_raw` | Back-pointer: file address of the Fractal Heap header (`sizeof_offsets` bytes). |
| `block_off_raw` | Logical heap offset of this direct block in the managed heap address space (`global_frhp_heap_off_size` bytes). |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few global_XXXXXX mentioned in this file. It may be helpful to mention at the beginning about globals being set via constraints or func setters. See v2_btree.md.

Comment thread docs/generated/fheap.md
|-------|-------------|
| `raw` | `global_frhp_id_len` bytes containing a managed, huge, or tiny heap ID. Managed IDs encode a logical heap offset and object length; huge IDs encode either an inline address/size tuple or a version 2 B-tree key; tiny IDs embed the object bytes inline. |


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a future enhancement, it may be worth describing the connection between the fractal heap IDs and the v2 btree record types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants