def poke.of

bend-kit-bytes@0.3.3.0 · bytes.bend:49

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

49def poke.of(+i: U32, +v: U32, r: Array<U32> & U32) -> Array<U32>:
50  (a, w) = r
51  +sh = shift(i)
52  Array.set(U32, a, (i >> 2n : U32), ((w .&. ((255 << sh) .^. 4294967295)) .|. (b8(v) << sh) : U32))

Uses (12)

Used by (1)