def oct.to
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
40# the byte as a word (0 to 255)
41def oct.to(b: OctByte) -> U32:
42 match b:
43 case OctByte{b0, b1, b2, b3, b4, b5, b6, b7}:
44 U32{WCon{b0, WCon{b1, WCon{b2, WCon{b3, WCon{b4, WCon{b5, WCon{b6, WCon{b7, Word.zero(24n)}}}}}}}}}