Skip to main content

Module codec

Module codec 

Source
Expand description

Object body codecs for loose-object backends.

Structs§

EncodedTree
TreeDeltaBase
Materialized anchor information inherited from the immediate parent.
TreeLineage
Store metadata needed to keep a future delta in the same bounded epoch. Losing this hint is safe: the next write falls back to a fresh HLR1 anchor.

Enums§

TreeEncodingKind

Functions§

decode_action
decode_blob_content
decode_state
decode_tree
decode_tree_body
Return the serialized tree body stored in a loose object, decompressing only the loose-object wrapper. Migration code uses this to decode older tree schemas without teaching the current Tree reader to accept them.
decode_tree_serialized
decode_tree_serialized_with_key
decode_tree_with_key
Decode any production tree body and validate it against the external key. HDC1 callers must supply its materialized anchor; canonical and HLR1 bodies ignore anchor.
encode_action
encode_blob_content
encode_state
encode_tree
encode_tree_at_rest
Heavy, seekable compression for repack/background use only.
encode_tree_hot
Encode the capture hot path. Materialized writes are cheap HLR1 anchors; eligible descendants are cumulative HDC1 deltas against the epoch anchor.