def AmlPkgLength.decode

bend-osdev-acpi@0.1.1.0 · aml_pkglength.bend:142

import bend-osdev-acpi@0.1.1.0/aml_pkglength.bend as AmlPkglength
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-acpi@0.1.1.0/error.bend as E

142# the PkgLength at the front of o, and what follows it; AcpiAmlTruncated if
143# o ends inside it, AcpiAmlBadPkgLength if bits 5-4 are set in a
144# multi-byte form
145def AmlPkgLength.decode(o: B.Octets) -> Result<&2, &2, E.AcpiError, AmlPkgLen>:
146  pk.pub(pk.dec(B.Octets.to_list(o)))

Uses (7)

Used by (3)