~/bend-docscommunity

src/coordinator/CursorCountPolicy.bend checks

raw source on the hub · import mylsm-lsm-store@0.6.0.0/src/coordinator/CursorCountPolicy.bend as CursorCountPolicy

2 imports
import Base
import ./Protocol.bend as Protocol

Types

type Decision source · line 5 · raw

Data

Reports one representable count update or exhaustion of the backup format.

Definitions

def next.checked source · line 10 · raw

@count:U32 -> @maximum:Bool -> Decision

Increments a cursor count without wrapping its fixed-width representation.

def next.copies source · line 15 · raw

@copies:Pair(U32, Pair(U32, U32)) -> Decision

def next source · line 21 · raw

@count:U32 -> Decision

Advances a cursor count without wrapping past its representable limit.

def u32.pair.copied source · line 24 · raw

@copies:Pair(U32, Pair(U32, U32)) -> Pair(U32, U32)

def u32.pair source · line 28 · raw

@value:U32 -> Pair(U32, U32)