pure.bend checks
raw source on the hub · import bend-kit-stream@0.5.0.2/pure.bend as Pure
Pure chunk validation and bounded-transfer read decisions.
1 import
import Base
Types
type ReadAction source · line 5 · raw
Data
Internal pure decisions, separated from the trusted effects.
EndReadAction
OverReadAction
ForwardReadAction
Definitions
def chunk.valid source · line 10 · raw
@+chunk:U32 -> Bool
def request.flags source · line 13 · raw
@probe:Bool -> @chunk:U32 -> @remaining:U32 -> U32
def request source · line 21 · raw
@chunk:U32 -> @+remaining:U32 -> U32
The one-byte probe is only requested after the entire cap was forwarded.
def read.action.flags source · line 24 · raw
@zero:Bool -> @probe:Bool -> ReadAction
def read.action source · line 35 · raw
@len:U32 -> @remaining:U32 -> ReadAction