def AcpiSdt.bytes
import bend-osdev-acpi@0.1.1.0/header.bend as Headerimport Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
197# a table's bytes, as far as its length field says (all of o if o is
198# shorter than 8 bytes); bytes after the length are not part of the table
199def AcpiSdt.bytes(+o: B.Octets) -> B.Octets:
200 B.Octets.take(U32.to_nat(Maybe.default(&2, U32, B.Octets.le32_at(o, 4n), 4294967295)), o)