Bytes.oct.of: def of bend-osdev-bytes@0.1.1.0 Import: import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytes Lines 34-38 of bend-osdev-bytes@0.1.1.0/bytes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&start_line=34&end_line=38 import Base # the low 8 bits of a word (the high 24 are never looked at) def oct.of(x: U32) -> OctByte: match x: case U32{WCon{c0, WCon{c1, WCon{c2, WCon{c3, WCon{c4, WCon{c5, WCon{c6, WCon{c7, hi}}}}}}}}}: OctByte{c0, c1, c2, c3, c4, c5, c6, c7} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=OctByte