def cur.byte

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

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

259def cur.byte(c: AmlCur) -> Result<&2, &2, E.AcpiError, AmlB>:
260  match c:
261    case AmlCur{code, lim}:
262      match code lim:
263        case Con{h, t} 1n+p:
264          Done{AmlB{h, AmlCur{t, p}}}
265        case _ _:
266          Fail{E.AcpiAmlTruncated{}}

Uses (6)

Used by (8)