def snapshot.cursor.open.prefix

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:346

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

346# Opens an owner cursor over one exact raw-byte prefix.
347def snapshot.cursor.open.prefix(
348  session: Client.Session,
349  snapshot_id: U32,
350  prefix: Bytes.Bytes
351) -> IO(Client.Session & Result<&1, &1, Client.Error, U32>):
352  snapshot.cursor.open.request(session,
353    CursorOpenCodec.encode.prefix(snapshot_id, prefix))

Uses (9)

Used by (1)