Skip to main content

Module accepted

Module accepted 

Source
Expand description

Accepted stores: the declaration keys each checker has accepted, one section per checker, so several checkers share one file.

Layout: MAGIC, a little-endian u32 section count, then per section a u32 name length, the checker name, a 32-byte tag the checker defines, a u64 key count, and the sorted keys.

Structs§

Section
One checker’s section. A checker trusts its keys only while tag matches its own.

Constants§

MAGIC

Functions§

parse
The sections of a store, borrowing from bytes.
save
Replace the store at path with sections, atomically: readers that map the old file keep seeing it whole.
write
Write sections in order. Each section’s keys must be sorted.