def classify.legacy

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

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

53# Preserves the candidate bytes while checking the current manifest magic.
54def classify.legacy(comparison: Bytes.Bytes & Bytes.Bytes & Bool) -> StorageFormat:
55  match comparison:
56    case (_, candidate, True{}):
57      Format04{}
58    case (_, candidate, False{}):
59      classify.current(Bytes.eq(magic.current(), candidate))

Uses (8)

Used by (1)