Bytes.le32: def of bend-osdev-bytes@0.1.1.0 Import: import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytes Lines 125-131 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=125&end_line=131 import Base import bend-osdev-word64@0.1.1.0/word64.bend as W # the four bytes of a word, least significant first def le32(+v: U32) -> List<&2, U32>: match v: case U32{w}: +r1 = W.W64.bits.hi(8n, 24n, w) +r2 = W.W64.bits.hi(8n, 16n, r1) [of_bits8(W.W64.bits.lo(8n, 24n, w)), of_bits8(W.W64.bits.lo(8n, 16n, r1)), of_bits8(W.W64.bits.lo(8n, 8n, r2)), of_bits8(W.W64.bits.hi(8n, 8n, r2))] Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=of_bits8 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.bits.hi https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.bits.lo