def AmlResource.parse

bend-osdev-acpi@0.1.1.0 · aml_resource.bend:262

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

262# the descriptors of a resource template, up to its End Tag (or its end);
263# AcpiBadEntry for a descriptor shorter than its type needs or that runs
264# past the buffer
265def AmlResource.parse(+o: B.Octets) -> Result<&2, &2, E.AcpiError, List<&2, AmlResource>>:
266  res.loop(Nat.add(B.Octets.len(o), 1n), res.step(o), Nil{})

Uses (9)

Used by (1)