Bytes.of_bits8: def of bend-osdev-bytes@0.1.1.1 Import: import bend-osdev-bytes@0.1.1.1/bytes.bend as Bytes Lines 22-24 of bend-osdev-bytes@0.1.1.1/bytes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&start_line=22&end_line=24 import Base import bend-osdev-word64@0.1.1.1/word64.bend as W # the byte (0 to 255) with these 8 bits def of_bits8(s: Word(8n)) -> U32: U32{W.W64.bits.cat(8n, 24n, s, Word.zero(24n))} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.zero https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.1/word64.bend&name=W64.bits.cat