def header.bytes

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

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

177def header.bytes(stream: Stream) -> Stream & Bytes.Bytes:
178  match stream:
179    case Stream{Header{}, entries, entry_count, block_count, block_index}:
180      header.bytes.counts(entries, u32.duplicate.pair(entry_count),
181        u32.duplicate.pair(block_count), block_index)
182    case _: (stream, Bytes.new(0))

Uses (8)

Used by (2)