def footer.expected_prefix

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

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

288def footer.expected_prefix(entry_count: Nat, block_count: Nat) -> Bytes.Bytes:
289  Bytes.concat([footer.magic(),
290    Bytes.set.u32be(Bytes.new(4), 0, U32.from_nat(entry_count)),
291    Bytes.set.u32be(Bytes.new(4), 0, U32.from_nat(block_count))])

Uses (8)

Used by (1)