def w.store

bend-kit-json@0.7.0.0 · json.bend:42

import bend-kit-json@0.7.0.0/json.bend as Json
import Base

42def w.store(full: Bool, buf: Array<U32>, +cap: U32, +n: U32, +w: U32) -> W:
43  match full:
44    case True{}:
45      +k = (n >> 2n : U32)
46      +g = U32.is_eq(k, cap)
47      W{Array.set(U32, w.room(g, buf, k), k, w), Bool.pick(U32, g, (cap * 2 : U32), cap), (n + 1 : U32), 0}
48    case False{}:
49      W{buf, cap, (n + 1 : U32), w}

Uses (11)

Used by (1)