def bpf_step.of

bend-osdev-bpf@0.1.0.0 · bpf.bend:95

import bend-osdev-bpf@0.1.0.0/bpf.bend as Bpf
import Base

95# a step that goes on to the next instruction, or ends the program with 0
96def bpf_step.of(m: Maybe<&2, BpfState>) -> BpfStep:
97  match m:
98    case None{}:
99      BpfStop{0}
100    case Some{st}:
101      BpfNext{0n, st}

Uses (3)

Used by (2)