def grow.if

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

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

364def grow.if(fits: Bool, +len: U32, buf: Array<U32>, +n: U32) -> Array<U32>:
365  match fits:
366    case True{}:
367      buf
368    case False{}:
369      dst(copy(len, buf, alloc(n), 0, 0))

Uses (6)

Used by (1)