def magic

mylsm-lsm-store@0.6.0.1 · src/transfer/Restore.bend:91

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

91# Unwraps a fixed exchange-format marker.
92def magic(value: Maybe<&1, Bytes.Bytes>) -> Bytes.Bytes:
93  match value:
94    case Some{bytes}: bytes
95    case None{}: Bytes.new(0)

Uses (3)

Used by (3)