Skip to main content

codec_for_depth

Function codec_for_depth 

Source
fn codec_for_depth(depth: u8) -> (&'static dyn ExtentCodec, bool)
Expand description

The codec a body at depth stores under, identity below the compression floor and lz4 at and past it, paired with whether that codec compresses. One read of the floor, so the pair cannot disagree with itself when the floor moves under a concurrent commit.