def sl.of_sdt
import bend-osdev-acpi@0.1.1.0/rsdt.bend as Rsdtimport 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
58# a checked table's body as entries; AcpiBadSize if it is not a whole
59# number of them
60def sl.of_sdt(+wide: Bool, t: H.AcpiSdt) -> Result<&2, &2, E.AcpiError, AcpiSdtList>:
61 match t:
62 case H.AcpiSdt{h, +body}:
63 sl.body(Nat.is_eq(Nat.mod(B.Octets.len(body), sl.width(wide)), 0n), wide, h, body)