def AcpiFacs.parse

bend-osdev-acpi@0.1.1.0 · facs.bend:48

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

48# the FACS at the front of o: at least 64 bytes, the signature, a length
49# of at least 64
50def AcpiFacs.parse(+o: B.Octets) -> Result<&2, &2, E.AcpiError, AcpiFacs>:
51  facs.p1(Nat.is_le(64n, B.Octets.len(o)), o)

Uses (7)

Used by (3)