def footer.bytes.counts

mylsm-lsm-store@0.6.0.1 · src/transfer/Backup.bend:286

import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup
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

286def footer.bytes.counts(
287  entries: List<&1, ByteMemTable.Entry>,
288  entry_counts: U32 & U32,
289  block_counts: U32 & U32,
290  +block_index: U32
291) -> Stream & Bytes.Bytes:
292  match entry_counts:
293    case (state_entries, encoded_entries):
294      match block_counts:
295        case (state_blocks, encoded_blocks):
296          footer.bytes.authenticated(entries, state_entries, state_blocks,
297            block_index, clone.split(Bytes.concat([footer.magic(),
298              u32.bytes(encoded_entries), u32.bytes(encoded_blocks)])))

Uses (12)

Used by (1)