Fields.AcpiF.fit: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/fields.bend as Fields Lines 54-57 of bend-osdev-acpi@0.1.1.0/fields.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/fields.bend&start_line=54&end_line=57 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B # o cut or padded with zeros to exactly n bytes def AcpiF.fit(+n: Nat, +o: B.Octets) -> B.Octets: +h = B.Octets.take(n, o) B.Octets.append(h, B.Octets.zeros(Nat.sub(n, B.Octets.len(h)))) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub 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.take https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.zeros