~/bend-docscommunity

pure.bend checks

raw source on the hub · import bend-kit-stream@0.5.0.0/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.

Definitions

def chunk.valid source · line 10 · raw

@+chunk:U32 -> Bool

def request source · line 14 · 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 21 · raw

@zero:Bool -> @probe:Bool -> ReadAction

def read.action source · line 32 · raw

@len:U32 -> @remaining:U32 -> ReadAction