Skip to main content

Module compact

Module compact 

Source
Expand description

Lossless columnar encodings used by background compact repacks.

Enums§

CompactError
Compact metadata encoding failure.

Functions§

decode_blob_frame
Decode and whole-frame-verify every indexed blob slice.
decode_state_frame
Decode and whole-frame-verify every state, recomputing each state id.
decode_tree_frame
Decode and whole-frame-verify every tree in a compact frame.
encode_blob_frame
Encode blob bodies newest-to-oldest in one checksummed solid frame.
encode_state_frame
Encode states as lossless columns, omitting only the derivable state id.
encode_tree_frame
Encode name-sorted trees as columnar mode/kind/name/target payloads.
encoded_tree_size
Exact raw-frame size for tree, including its per-tree entry count.
extract_state
Reconstruct one state and verify its BLAKE3 typed identity.
extract_tree
Reconstruct one tree and verify its BLAKE3 typed hash.
is_blob_frame
Whether bytes begin with the lineage-solid blob-frame discriminator.
is_state_frame
Whether bytes begin with the compact-state frame discriminator.
is_tree_frame
Whether bytes begin with the compact-tree frame discriminator.