Expand description
Self-describing wire format for FibQuant codes.
The FB1/FB2 compact formats strip all profile metadata, forcing
downstream consumers to hardcode seed, dim, k, N externally. This
module provides FibCodeWireV1 — a self-describing format with a
header carrying seed, dim, k, N, norm_format, and profile digest,
enabling decode without any external profile knowledge.
Structs§
- FibCode
Wire V1 - Self-describing wire format codec.
- Wire
Header - Parsed wire header (metadata without full decode).
Constants§
- WIRE_
HEADER_ SIZE - Header size: magic(4) + version(1) + ambient_dim(4) + block_dim(4)
- WIRE_
MAGIC - Magic bytes: “FBW1” = Fib Binary Wire v1.
- WIRE_
VERSION - Current wire format version.