def hex_bytes.fin

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:87

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

87# Unwrap a fixed valid hexadecimal constant.
88def hex_bytes.fin(value: Maybe<&1, Bytes.Bytes>) -> Bytes.Bytes:
89  match value:
90    case Some{bytes}:
91      bytes
92    case None{}:
93      Bytes.new(0)

Uses (3)

Used by (2)