def prefix.slice.result

mylsm-lsm-store@0.6.0.1 · src/scan/ByteRange.bend:93

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

93# Compares a bounded key prefix with the requested bytes.
94def prefix.slice.result(
95  prefix: Bytes.Bytes,
96  pair: Bytes.Bytes & Bytes.Bytes
97) -> Bool:
98  match pair:
99    case (_, sliced):
100      prefix.equal(Bytes.eq(sliced, prefix))

Uses (6)

Used by (1)