Mylsm.Bytes.scan_seek: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm Lines 1751-1775 of mylsm-lsm-store@0.6.0.1/mylsm.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&start_line=1751&end_line=1775 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as PackedBytes import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleByteCursor import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend as OwnerCursorCodec def Bytes.scan_seek( cursor: Bytes.Cursor, lower: Maybe<&1, PackedBytes.Bytes> ) -> IO(Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit>): match cursor: case ByteOwnedCursor{snapshot, inner, bounds}: do IO>: pair : Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit> <- Bytes.scan_seek(inner, lower) return Bytes.scan_seek.owned(snapshot, bounds, pair) case ByteStreamCursor{inner}: IO.pure(Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit>, (ByteStreamCursor{VisibleByteCursor.seek(inner, lower)}, Done{Unit{}})) case ByteOwnerCursor{session, snapshot_id, cursor_id}: Bytes.scan_seek.ids(session, snapshot_id, OwnerCursorCodec.u32.duplicate(cursor_id), lower) case ByteCursor{_, _}: IO.pure(Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit>, (Bytes.snapshot.scan_seek(cursor, lower), Done{Unit{}})) case ByteClosedCursor{}: IO.pure(Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit>, (ByteClosedCursor{}, Done{Unit{}})) case ByteFailureCursor{error}: IO.pure(Bytes.Cursor & Result<&1, &1, Bytes.Error, Unit>, (ByteClosedCursor{}, Fail{error})) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.scan_seek.ids https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.scan_seek.owned https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/mylsm.bend&name=Bytes.snapshot.scan_seek https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend&name=u32.duplicate https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=seek