FormatInspect.classify.legacy: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspect Lines 53-59 of mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend&start_line=53&end_line=59 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Preserves the candidate bytes while checking the current manifest magic. def classify.legacy(comparison: Bytes.Bytes & Bytes.Bytes & Bool) -> StorageFormat: match comparison: case (_, candidate, True{}): Format04{} case (_, candidate, False{}): classify.current(Bytes.eq(magic.current(), candidate)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=eq https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend&name=StorageFormat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend&name=classify.current https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend&name=magic.current