def classify.current
import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspectimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
45# Classifies the current magic after an unsuccessful legacy comparison.
46def classify.current(comparison: Bytes.Bytes & Bytes.Bytes & Bool) -> StorageFormat:
47 match comparison:
48 case (_, _, True{}):
49 Format06{}
50 case (_, _, False{}):
51 UnknownFormat{}