def AcpiTable.parse_with

bend-osdev-acpi@0.1.1.0 · registry.bend:174

import bend-osdev-acpi@0.1.1.0/registry.bend as Registry
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
import bend-osdev-acpi@0.1.1.0/header.bend as H

174# the table at the front of o: checked (AcpiSdt.check: length and checksum),
175# then read by the parser the registry names for its signature, with ext
176# for AcpiKExt tags
177def AcpiTable.parse_with(~X: Data, ~ext: U32 -> H.AcpiSdt -> Result<&2, &2, E.AcpiError, X>, +reg: AcpiRegistry, +o: B.Octets) -> Result<&2, &2, E.AcpiError, AcpiTable<X>>:
178  reg.go(~X, ~ext, reg, H.AcpiSdt.parse(o))

Uses (9)

Used by (2)