def encode
import bend-kit-tar@0.3.0.0/tar.bend as Tarimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
722# A POSIX ustar archive of the entries in order, ended by two zero blocks. Files are mode 0644 and
723# directories 0755, with uid, gid, and mtime 0. A name over 100 bytes goes in a PAX path record.
724# None when a name is empty or holds a NUL byte, or when the archive would pass 4 GiB (U32 lengths).
725# ustar's 8 GiB size field holds any U32 length, so encode never needs a PAX size.
726def encode(entries: List<&1, Entry>) -> Maybe<&1, Bytes.Bytes>:
727 enc.go(entries, Some{Bytes.new(0)})
Uses (6)
Used by (0)
No other definition uses this definition.