def classify.current

mylsm-lsm-store@0.6.0.1 · src/transfer/FormatInspect.bend:45

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

Uses (5)

Used by (1)