def finish
import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFileimport Base
import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
1763# Parse and authenticate the complete accumulated SST file.
1764def finish(decoder: Decoder) -> Result<&1, &1, Error, Sstable.Table>:
1765 match decoder:
1766 case Dec{chunks, total, False{}}:
1767 finish.concat(total, Bytes.concat(List.reverse(&1, Bytes.Bytes, chunks)))
1768 case Dec{_, _, True{}}:
1769 Fail{TooLarge{}}
Uses (9)
Used by (0)
No other definition uses this definition.