Function writer [src]
Alias for std.tar.writer.writer
Creates tar Writer which will write tar content to the underlying_writer.
Use setRoot to nest all following entries under single root. If file don't
fit into posix header (name+prefix: 100+155 bytes) gnu extented header will
be used for long names. Options enables setting file premission mode and
mtime. Default is to use current time for mtime and 0o664 for file mode.
Prototype
pub fn writer(underlying_writer: anytype) Writer(@TypeOf(underlying_writer))
Source
pub fn writer(underlying_writer: anytype) Writer(@TypeOf(underlying_writer)) {
return .{ .underlying_writer = underlying_writer };
}