Rsdt.sl.enc: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/rsdt.bend as Rsdt Lines 84-93 of bend-osdev-acpi@0.1.1.0/rsdt.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/rsdt.bend&start_line=84&end_line=93 import Base import bend-osdev-word64@0.1.1.0/word64.bend as W import bend-osdev-bytes@0.1.1.0/bytes.bend as B def sl.enc(xs: List<&2, W.W64>, wide: Bool) -> List<&2, B.Octets>: match xs: case Nil{}: Nil{} case Con{h, t}: match wide: case True{}: Con{B.Octets.le64(h), sl.enc(t, True{})} case False{}: Con{B.Octets.le32(W.W64.lo(h)), sl.enc(t, False{})} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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.le32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.le64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.lo