12 instantiations of TarWriter
Microsoft.Build.Tasks.Core (1)
TarDirectory.cs (1)
230
using TarWriter writer = new
TarWriter
(compressionStream ?? destinationStream, format, leaveOpen: true);
Microsoft.NET.Build.Containers (7)
Layer.cs (1)
106
using (TarWriter writer =
new
(layerStream, TarEntryFormat.Pax, leaveOpen: true))
LocalDaemons\ContainerArchive.cs (3)
61
using TarWriter writer =
new
(imageStream, TarEntryFormat.Pax, leaveOpen: true);
81
using TarWriter writer =
new
(imageStream, TarEntryFormat.Pax, leaveOpen: true);
96
using TarWriter writer =
new
(imageStream, 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)
155
/// <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>
177
/// <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>
44 references to TarWriter
Microsoft.Build.Tasks.Core (3)
TarDirectory.cs (3)
230
using
TarWriter
writer = new TarWriter(compressionStream ?? destinationStream, format, leaveOpen: true);
470
/// source file's last-write time. The entry is constructed manually (rather than via <see cref="
TarWriter
.WriteEntry(string, string)"/>)
474
private static async System.Threading.Tasks.Task WriteStampedEntryAsync(
TarWriter
writer, TarEntryFormat format, FileSystemInfo info, string entryName, DateTimeOffset timestamp, CancellationToken cancellationToken)
Microsoft.NET.Build.Containers (25)
Layer.cs (3)
106
using (
TarWriter
writer = new(layerStream, TarEntryFormat.Pax, leaveOpen: true))
170
static void WriteEntry(
TarWriter
writer, LayerTarGZipStream layerStream, PaxTarEntry entry)
177
static void WriteTarEntryForFile(
TarWriter
writer, LayerTarGZipStream layerStream, FileSystemInfo file, string containerPath, IEnumerable<KeyValuePair<string, string>> entryAttributes, int? userId, DateTimeOffset modificationTime)
LocalDaemons\ContainerArchive.cs (11)
61
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
81
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
96
using
TarWriter
writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
110
TarWriter
writer,
137
private static async Task WriteImageConfigAsync(
TarWriter
writer, BuiltImage image, string configPath, CancellationToken cancellationToken)
153
TarWriter
writer,
186
private static async Task WriteOciLayoutAsync(
TarWriter
writer, CancellationToken cancellationToken)
201
private static async Task WriteManifestForOciImageAsync(
TarWriter
writer, BuiltImage image, CancellationToken cancellationToken)
218
TarWriter
writer,
249
TarWriter
writer,
268
TarWriter
writer,
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.
123
/// 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.
242
/// <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.