def magic.checked

mylsm-lsm-store@0.6.0.1 · src/coordinator/OptionsCodec.bend:170

import mylsm-lsm-store@0.6.0.1/src/coordinator/OptionsCodec.bend as OptionsCodec
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

170def magic.checked(input: Bytes.Bytes, matches: Bool) -> Decision:
171  match matches:
172    case True{}: version.read(ByteMemTable.bytes.clone(input))
173    case False{}: Malformed{}

Uses (5)

Used by (1)