def cur.pkg
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterpimport 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)