Words.put_word_at: def of gralha-byte-words@0.1.0.0 Import: import gralha-byte-words@0.1.0.0/words.bend as Words Lines 306-315 of gralha-byte-words@0.1.0.0/words.bend: https://jend.leeeet.dev/read.txt?path=gralha-byte-words@0.1.0.0/words.bend&start_line=306&end_line=315 import Base # Four bytes into a previously reserved output range. The destination may be # unaligned; its already-written low bytes are preserved and the high spill # becomes the prefix of the next word. def put_word_at(st: Sink, +v: U32) -> Sink: match st: case Sink{a, cap, pos}: +p = pos +q = (p >> 2n : U32) +sh = ((p .&. 3) << 3n : U32) ob_word_got(Array.get(U32, a, q), cap, p, q, sh, v) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=gralha-byte-words@0.1.0.0/words.bend&name=Sink https://jend.leeeet.dev/definition.txt?path=gralha-byte-words@0.1.0.0/words.bend&name=ob_word_got