def nm.dec
import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlNameimport Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
336# the NameString at the front of a list of bytes
337def nm.dec(xs: List<&2, U32>) -> Result<&2, &2, E.AcpiError, AmlNameL>:
338 match xs:
339 case Nil{}:
340 Fail{E.AcpiAmlTruncated{}}
341 case Con{+c, t}:
342 nm.dec.k(AmlLead.classify(c), c, t)