def restore.block.header

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

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

607def restore.block.header(
608  input: Bytes.Bytes,
609  +offset: Nat,
610  expected_index: U32
611) -> Result<&1, &1, Error, BlockHeader>:
612  restore.block.magic(Bytes.slice(input, U32.from_nat(offset), 4),
613    offset, expected_index)

Uses (9)

Used by (1)