def parse.multi.header.total

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:1476

import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

1476def parse.multi.header.total(
1477  pair: Bytes.Bytes & Maybe<&2, U32>,
1478  level: Nat
1479) -> Result<&1, &1, Error, MultiHeader>:
1480  match pair:
1481    case (file, Some{total}):
1482      parse.multi.header.blocks(Bytes.get.u32be(file, 16), level,
1483        U32.to_nat(total))
1484    case _:
1485      Fail{Malformed{}}

Uses (12)

Used by (1)