Skip to main content

Module codec

Module codec 

Source

Structs§

CompactFeatureFlags
Feature flags for the v2 compact wire format. All bits are reserved for future use. Unknown flags must be ignored by the decoder (forward compatibility).
FibCodeV1
Encoded fixed-rate FibQuant artifact.
FibQuantizer
FibQuant encoder/decoder bound to one profile and codebook.
GpuStepReport
Per-step GPU dispatch report.

Constants§

CODEC_ID
Canonical codec ID string for fib-quant. Downstream crates should use this instead of defining their own.
CODE_SCHEMA
COMPACT_MAGIC
Magic + version prefix for the compact binary wire format. F B 1 = Fib Binary v1. Any decoder that sees a different magic should reject the payload as corrupt.
COMPACT_V2_MAGIC
Magic + version for the v2 compact wire format with feature flags. F B 2 = Fib Binary v2. Adds a 1-byte feature flags field after the version byte, enabling forward-compatible extensions (alternative norm encodings, sparse indices, etc.).
COMPACT_V2_VERSION
COMPACT_VERSION

Functions§

encoded_digest
Stable digest over the encoded artifact fields.