def parse.block.records

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:970

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

970def parse.block.records(
971  pair: Bytes.Cursor & Result<&1, &1, Error, ParsedEntries>,
972  +payload_len: U32,
973  +count: U32
974) -> Bytes.Cursor & Result<&1, &1, Error, ParsedBlock>:
975  match pair:
976    case (cursor, Fail{error}):
977      (cursor, Fail{error})
978    case (cursor, Done{records}):
979      parse.block.digest(parse.hash.words(cursor), records, payload_len, count)

Uses (10)

Used by (1)