def aml.read

bend-osdev-acpi@0.1.1.0 · aml.bend:128

import bend-osdev-acpi@0.1.1.0/aml.bend as Aml
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as I

128def aml.read(-H: Data, r: Result<&2, &2, E.AcpiError, I.AmlRead<H>>, +w: I.AmlWorld<H>) -> I.AmlMachine<H>:
129  match r:
130    case Fail{e}:
131      I.AmlMachine{I.AmlMFail{e}, I.in.no.cur(), [I.AmlFTop{}], w}
132    case Done{I.AmlRead{w2, v}}:
133      I.AmlMachine{I.AmlMDone{v}, I.in.no.cur(), [I.AmlFTop{}], w2}

Uses (9)

Used by (1)