def in.read.give

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:906

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E

906def in.read.give(-H: Data, r: Result<&2, &2, E.AcpiError, AmlRead<H>>, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
907  match r:
908    case Fail{e}:
909      AmlMachine{AmlMFail{e}, c, fs, w}
910    case Done{AmlRead{w2, v}}:
911      AmlMachine{AmlMGive{v}, c, fs, w2}

Uses (9)

Used by (2)