def header.entry_count.read
import mylsm-lsm-store@0.6.0.1/src/transfer/Restore.bend as Restoreimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
119def header.entry_count.read(pair: Bytes.Bytes & Maybe<&2, U32>) -> Result<&1, &1, Error, Header>:
120 match pair:
121 case (input, value):
122 match value:
123 case None{}: Fail{InvalidFormat{}}
124 case Some{entry_count}: header.ready.block(Bytes.get.u32be(input, 16), entry_count)