def decode.empty.footer.checked

mylsm-lsm-store@0.6.0.1 · src/transfer/Restore.bend:412

import mylsm-lsm-store@0.6.0.1/src/transfer/Restore.bend as Restore
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

412def decode.empty.footer.checked(
413  input: Bytes.Bytes,
414  checksum_valid: Bool
415) -> Result<&1, &1, Error, Decoded>:
416  match checksum_valid:
417    case False{}: Fail{ChecksumMismatch{}}
418    case True{}: decode.empty(empty.footer.fields(input))

Uses (7)

Used by (1)