def parse.block.count.copy

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

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

1241def parse.block.count.copy(
1242  block: Bytes.Bytes,
1243  count: U32,
1244  pair: Nat & Nat
1245) -> Result<&1, &1, Error, ByteMemTable.Table>:
1246  match pair:
1247    case (slice_length, check_length):
1248      parse.block.frames(Bytes.slice(block, 8, U32.from_nat(slice_length)),
1249        count, U32.from_nat(check_length))

Uses (11)

Used by (1)