def set.fin

lawful-bytes@0.1.1.0 · bytes.bend:24

import lawful-bytes@0.1.1.0/bytes.bend as Bytes
import Base
import lawful-words@0.1.0.0/defs.bend as W
import lawful-bytes@0.1.1.0/defs.bend as D

24def set.fin(+len: U32, +i: U32, +v: U32, r: Array<U32> & U32) -> D.Bytes:
25  (buf, +w) = r
26  D.Bytes{len, Array.set(U32, buf, (i >> 2n : U32), W.put_byte(w, U32.to_nat((i .&. 3 : U32)), v))}

Uses (10)

Used by (2)