def scan.prefix

mylsm-lsm-store@0.6.0.1 · src/scan/SstCursor.bend:61

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

61def scan.prefix(key: Bytes.Bytes, prefix: Maybe<&1, Bytes.Bytes>) -> Bool:
62  match prefix:
63    case None{}: True{}
64    case Some{bytes}: ByteRange.has_prefix(key, bytes)

Uses (4)

Used by (1)