def restore.block.magic

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

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

597def restore.block.magic(
598  pair: Bytes.Bytes & Bytes.Bytes,
599  +offset: Nat,
600  expected_index: U32
601) -> Result<&1, &1, Error, BlockHeader>:
602  match pair:
603    case (input, marker):
604      restore.block.magic.valid(input, offset, expected_index,
605        equal(Bytes.eq(marker, block.magic())))

Uses (12)

Used by (1)