def parse.footer.root
mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:1065
import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable
import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1065def parse.footer.root(
1066 pair: Bytes.Cursor & Result<&1, &1, Error, Bytes.Bytes>,
1067 +level: U32,
1068 +total: U32,
1069 +block_count: U32,
1070 entries: List<&2, MemTable.Entry>,
1071 hashes: List<&1, Bytes.Bytes>
1072) -> Result<&1, &1, Error, Sstable.Table>:
1073 match pair:
1074 case (_, Fail{error}):
1075 Fail{error}
1076 case (cursor, Done{claimed}):
1077 parse.footer.verify(cursor, claimed, level, total, block_count, entries, hashes)