def name.pre

bend-kit-tar@0.3.0.0 · tar.bend:126

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

126def name.pre(+i: U32, +n: U32, r: Array<U32> & U32) -> Array<U32> & Bytes.Bytes:
127  (a, +pl) = r
128  +off = Bool.pick(U32, U32.is_ne(pl, 0), (pl + 1 : U32), 0)
129  name.join(i, n, pl, Bytes.copy(pl, a, Bytes.alloc((off + n : U32)), (i + 345 : U32), 0))

Uses (11)

Used by (1)