def enc.main

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

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

658# The header keeps the name's first 100 bytes; a longer name rides in the PAX record before it.
659def enc.main(+nl: U32, +t: U32, +mode: U32, +dl: U32, db: Array<U32>, r: Array<U32> & Bytes.Bytes) -> Bytes.Bytes:
660  (nb, out) = r
661  enc.hdr(dl, db, out, hdr(nb, U32.min(nl, 100), mode, dl, t))

Uses (8)

Used by (1)