Structs§
Constants§
- ALG_
DISC_ DEFAULT - Algorithm discriminator — the u16 at index-record bytes 46–47 (ahu-format-spec.md §2.4.1).
- ALG_
DISC_ ML_ DSA_ 44 - ALG_
DISC_ ML_ DSA_ 65 - ALG_
DISC_ ML_ DSA_ 87 - INDEX_
RECORD_ SIZE
Functions§
- binary_
search - Search for a record with the given key and discriminator 0 (default).
- binary_
search_ preferred - Search for the best-matching record given a list of preferred discriminators. Tries each discriminator in order; returns the first hit. Falls back to discriminator 0 if none of the preferences match.
- binary_
search_ with_ discriminator - Search for a record with the given key and specific discriminator.
- compute_
entry_ key - validate_
sort_ order - Validate that records are sorted ascending by
(entry_key, discriminator)with no duplicate pair (ahu-format-spec.md §2.4.1). Equal entry keys must carry strictly ascending discriminators; a repeated pair is aDuplicateEntryKeyerror, any descending order anIndexNotSortederror.