Packed.padded_word: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/sha/packed.bend as Packed Lines 49-53 of bend-collections@1.0.0.0/spec/crypto/sha/packed.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/sha/packed.bend&start_line=49&end_line=53 import Base def padded_word(+position: Nat, w: U32, +remain: Nat, total: Nat) -> U32: match position: case 56n: length_word(Nat.is_lt(remain,56n),pad_word(w,56n,remain),len_hi(total)) case 60n: length_word(Nat.is_lt(remain,56n),pad_word(w,60n,remain),len_lo(total)) case _: pad_word(w,position,remain) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha/packed.bend&name=len_hi https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha/packed.bend&name=len_lo https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha/packed.bend&name=length_word https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha/packed.bend&name=pad_word