8 instantiations of TarWriter
Microsoft.NET.Build.Containers (4)
Layer.cs (1)
96
using (TarWriter writer =
new
(gz, TarEntryFormat.Pax, leaveOpen: true))
LocalDaemons\DockerCli.cs (3)
312
using TarWriter writer =
new
(imageStream, TarEntryFormat.Pax, leaveOpen: true);
419
using TarWriter writer =
new
(imageStream, TarEntryFormat.Pax, leaveOpen: true);
515
using TarWriter writer =
new
(imageStream, TarEntryFormat.Pax, leaveOpen: true);
System.Formats.Tar (4)
System\Formats\Tar\TarFile.cs (2)
524
using (TarWriter writer = new
TarWriter
(destination, options, leaveOpen))
578
TarWriter writer = new
TarWriter
(destination, options, leaveOpen);
System\Formats\Tar\TarWriter.cs (2)
163
/// <para>The entry will be created using the format specified in the <see cref="
TarWriter
(Stream, TarEntryFormat, bool)"/> constructor, or will use <see cref="TarEntryFormat.Pax"/> if other constructors are used.</para>
183
/// <para>The entry will be created using the format specified in the <see cref="
TarWriter
(Stream, TarEntryFormat, bool)"/> constructor, or will use <see cref="TarEntryFormat.Pax"/> if other constructors are used.</para>
29 references to TarWriter
Microsoft.NET.Build.Containers (13)
Layer.cs (2)
96
using (
TarWriter
writer = new(gz, TarEntryFormat.Pax, leaveOpen: true))
153
static void WriteTarEntryForFile(
TarWriter
writer, FileSystemInfo file, string containerPath, IEnumerable<KeyValuePair<string, string>> entryAttributes, int? userId)
LocalDaemons\DockerCli.cs (11)
312
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
329
TarWriter
writer,
362
TarWriter
writer,
379
TarWriter
writer,
419
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
431
private static async Task WriteOciLayout(
TarWriter
writer, CancellationToken cancellationToken)
448
TarWriter
writer,
466
TarWriter
writer,
491
TarWriter
writer,
515
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
531
TarWriter
writer,
System.Formats.Tar (16)
System\Formats\Tar\TarEntry.cs (1)
264
/// <remarks>If you write data to this data stream, make sure to rewind it to the desired start position before writing this entry into an archive using <see cref="
TarWriter
.WriteEntry(TarEntry)"/>.</remarks>
System\Formats\Tar\TarFile.cs (2)
524
using (
TarWriter
writer = new TarWriter(destination, options, leaveOpen))
578
TarWriter
writer = new TarWriter(destination, options, leaveOpen);
System\Formats\Tar\TarWriter.cs (11)
25
/// Initializes a <see cref="
TarWriter
"/> instance that can write tar entries to the specified stream and closes the <paramref name="archiveStream"/> upon disposal of this instance.
31
/// <remarks>The <see cref="TarEntryFormat.Pax"/> format is the default format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="
TarWriter
"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
38
/// Initializes a <see cref="
TarWriter
"/> instance that can write tar entries to the specified stream and optionally leaves the stream open upon disposal of this instance. When using this constructor, the format of the resulting archive is <see cref="TarEntryFormat.Pax"/>.
44
/// <remarks>The <see cref="TarEntryFormat.Pax"/> format is the default format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="
TarWriter
"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
51
/// Initializes a <see cref="
TarWriter
"/> instance that can write tar entries to the specified stream, optionally leaves the stream open upon disposal of
62
/// <remarks>The <see cref="TarEntryFormat.Pax"/> format is the default for the other <see cref="
TarWriter
"/> constructors. This is the recommended format as it is the most flexible and POSIX compatible. This is the only format with which <see cref="
TarWriter
"/> reads and stores <c>atime</c> and <c>ctime</c> when creating entries from filesystem entries.</remarks>
79
/// Initializes a <see cref="
TarWriter
"/> instance that can write tar entries to the specified stream using the specified options,
113
/// Disposes the current <see cref="
TarWriter
"/> instance, and closes the archive stream if the <c>leaveOpen</c> argument was set to <see langword="false"/> in the constructor.
134
/// Asynchronously disposes the current <see cref="
TarWriter
"/> instance, and closes the archive stream if the <c>leaveOpen</c> argument was set to <see langword="false"/> in the constructor.
256
/// <para>To ensure an entry preserves the <c>atime</c> and <c>ctime</c> values and it is readable by other tools, it is recommended to convert the entry to <see cref="PaxTarEntry"/> instead. In that format, the two values get stored in the <see cref="PaxTarEntry.ExtendedAttributes"/>. The <see cref="TarEntryFormat.Pax"/> format is used as the default format by <see cref="
TarWriter
"/> as it is the most flexible and POSIX compatible.</para>
System\Formats\Tar\TarWriterOptions.cs (2)
7
/// Provides options for <see cref="
TarWriter
"/>.
12
/// Gets or sets the format of the entries when writing entries to the archive using the <see cref="
TarWriter
.WriteEntry(string, string?)"/> method.