def magic.from_hex
import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspectimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
29# Converts a decoded hex literal to an owned buffer.
30def magic.from_hex(value: Maybe<&1, Bytes.Bytes>) -> Bytes.Bytes:
31 match value:
32 case Some{bytes}:
33 bytes
34 case None{}:
35 Bytes.new(0)