def decode.header.ready

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

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

920def decode.header.ready(input: Bytes.Bytes, header: Header) -> Result<&1, &1, Error, Decoded>:
921  match header:
922    case Header{header_input, entry_count, block_count}:
923      decode.header.ready.count(input, header_input, entry_count,
924        QueuePolicy.nat.clone.pair(U32.to_nat(block_count)))

Uses (8)

Used by (1)