def footer.bytes.output
mylsm-lsm-store@0.6.0.1 · src/transfer/Backup.bend:257
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
257def footer.bytes.output(
258 stream: Stream,
259 output: Bytes.Bytes,
260 checksum: Bytes.Bytes
261) -> Stream & Bytes.Bytes:
262 match stream:
263 case Stream{Finished{}, entries, entry_count, block_count, block_index}:
264 (Stream{Finished{}, entries, entry_count, block_count, block_index},
265 Bytes.concat([output, checksum]))
266 case _: (stream, Bytes.new(0))