Entries.AcpiRawEntry.encode: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/entries.bend as Entries Lines 78-81 of bend-osdev-acpi@0.1.1.0/entries.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/entries.bend&start_line=78&end_line=81 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B # the structure as bytes: its type, its length, then body (the bytes after # the two header bytes) def AcpiRawEntry.encode(+k: U32, +body: B.Octets) -> B.Octets: B.Octets.append(B.Octets.of_list([k, U32.from_nat(Nat.add(2n, B.Octets.len(body)))]), body) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.append https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.len https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.of_list