Module segment
Expand description
Checked 64-bit segment addressing for operator companion packages (W2: EOS-021).
Enforces:
- 64-bit segment offsets and lengths without truncation.
- Checked integer arithmetic on segment bounds (no overflow).
- WASM / 32-bit addressability safety checks (fails closed before truncating).
- CRC32 / FNV-1a checksum verification.
- Safe zero-copy borrowing views (
SegmentView).
Structs§
- Segment
Descriptor - Declared segment in the 64-bit segment table.
- Segment
View - A borrowed slice representing a validated segment in memory.
Enums§
- Segment
Error - Errors occurring during segment addressing, validation, or slicing.
- Segment
Kind - Known segment payload classifications.
Functions§
- compute_
segment_ checksum - Compute a standard 32-bit FNV-1a checksum of the payload bytes.