8 instantiations of TarWriter
Microsoft.NET.Build.Containers (4)
Layer.cs (1)
96using (TarWriter writer = new(gz, TarEntryFormat.Pax, leaveOpen: true))
LocalDaemons\ContainerArchive.cs (3)
61using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true); 81using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true); 96using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true);
System.Formats.Tar (4)
System\Formats\Tar\TarFile.cs (2)
524using (TarWriter writer = new TarWriter(destination, options, leaveOpen)) 578TarWriter 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>
29 references to TarWriter
Microsoft.NET.Build.Containers (13)
Layer.cs (2)
96using (TarWriter writer = new(gz, TarEntryFormat.Pax, leaveOpen: true)) 153static void WriteTarEntryForFile(TarWriter writer, FileSystemInfo file, string containerPath, IEnumerable<KeyValuePair<string, string>> entryAttributes, int? userId)
LocalDaemons\ContainerArchive.cs (11)
61using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true); 81using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true); 96using TarWriter writer = new(imageStream, TarEntryFormat.Pax, leaveOpen: true); 110TarWriter writer, 137private static async Task WriteImageConfigAsync(TarWriter writer, BuiltImage image, string configPath, CancellationToken cancellationToken) 153TarWriter writer, 186private static async Task WriteOciLayoutAsync(TarWriter writer, CancellationToken cancellationToken) 201private static async Task WriteManifestForOciImageAsync(TarWriter writer, BuiltImage image, CancellationToken cancellationToken) 218TarWriter writer, 249TarWriter writer, 268TarWriter 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)
524using (TarWriter writer = new TarWriter(destination, options, leaveOpen)) 578TarWriter 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.