Skip to main content

Module segment

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§

SegmentDescriptor
Declared segment in the 64-bit segment table.
SegmentView
A borrowed slice representing a validated segment in memory.

Enums§

SegmentError
Errors occurring during segment addressing, validation, or slicing.
SegmentKind
Known segment payload classifications.

Functions§

compute_segment_checksum
Compute a standard 32-bit FNV-1a checksum of the payload bytes.