def decode.hex.sized

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

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

248def decode.hex.sized(input: String & String, valid: Bool) -> Decision:
249  match input:
250    case (canonical_input, decode_input):
251      match valid:
252        case True{}:
253          hex.decoded(canonical_input, Bytes.from_hex(decode_input))
254        case False{}: Malformed{}

Uses (7)

Used by (1)