def prefix.finish.exact

mylsm-lsm-store@0.6.0.1 · src/coordinator/CursorOpenCodec.bend:284

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

284# Rejects trailing bytes or returns the decoded prefix cursor request.
285def prefix.finish.exact(
286  exact: Bool,
287  snapshot_id: U32,
288  prefix: Bytes.Bytes
289) -> Decision:
290  match exact:
291    case True{}:
292      Decoded{Request{snapshot_id,
293        RangeCursor.Bounds{None{}, None{}, Some{prefix}}}}
294    case False{}: Malformed{}

Uses (7)

Used by (1)