def AcpiSdt.check

bend-osdev-acpi@0.1.1.0 · header.bend:202

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

202# the table at the front of o, checked: its length field from 36 to the
203# bytes given (AcpiTooShort, AcpiBadLength), and its bytes summing to zero
204# (AcpiBadChecksum). Answers the table's bytes (AcpiSdt.bytes(o)).
205def AcpiSdt.check(+o: B.Octets) -> Result<&2, &2, E.AcpiError, B.Octets>:
206  sdt.c1(B.Octets.le32_at(o, 4n), o)

Uses (5)

Used by (6)