Facs.facs.p2: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/facs.bend as Facs Lines 33-39 of bend-osdev-acpi@0.1.1.0/facs.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/facs.bend&start_line=33&end_line=39 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 import bend-osdev-acpi@0.1.1.0/fields.bend as F def facs.p2(ok: Bool, +o: B.Octets) -> Result<&2, &2, E.AcpiError, AcpiFacs>: match ok: case False{}: Fail{E.AcpiBadSignature{B.Octets.take(4n, o)}} case True{}: +l = F.AcpiF.u32(o, 4n) facs.p3(Nat.is_le(64n, U32.to_nat(l)), l, o) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/error.bend&name=AcpiError https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/facs.bend&name=AcpiFacs https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/facs.bend&name=facs.p3 https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/fields.bend&name=AcpiF.u32 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.take