def prefix.slice.result
import mylsm-lsm-store@0.6.0.1/src/scan/ByteRange.bend as ByteRangeimport 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))