def cur.pkg

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

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
import bend-osdev-acpi@0.1.1.0/aml_pkglength.bend as K

314# a PkgLength and the package it covers (the value counts the PkgLength's
315# own bytes); AcpiAmlBadPkgLength if it runs past the enclosing list
316def cur.pkg(c: AmlCur) -> Result<&2, &2, E.AcpiError, AmlPkgC>:
317  match c:
318    case AmlCur{+code, +lim}:
319      cur.pkg.go(K.pk.dec(code), lim)

Uses (6)

Used by (5)