def cur.name
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_name.bend as N
343# a NameString (in the shortest form, as compilers write it)
344def cur.name(c: AmlCur) -> Result<&2, &2, E.AcpiError, AmlNameC>:
345 match c:
346 case AmlCur{+code, +lim}:
347 cur.name.go(N.nm.dec(code), code, lim)