58 references to Pax
System.Formats.Tar (58)
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (2)
18
: base(header, readerOfOrigin, TarEntryFormat.
Pax
)
28
: base(TarEntryType.GlobalExtendedAttributes, nameof(PaxGlobalExtendedAttributesTarEntry), TarEntryFormat.
Pax
, isGea: true) // Name == name of type for lack of a better temporary name until the entry is written
System\Formats\Tar\PaxTarEntry.cs (5)
19
: base(header, readerOfOrigin, TarEntryFormat.
Pax
)
53
: base(entryType, entryName, TarEntryFormat.
Pax
, isGea: false)
92
: base(entryType, entryName, TarEntryFormat.
Pax
, isGea: false)
110
: base(other, TarEntryFormat.
Pax
)
112
if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
)
System\Formats\Tar\PosixTarEntry.cs (1)
9
/// Abstract class that represents a tar entry from an archive of a format that is based on the POSIX IEEE P1003.1 standard from 1988. This includes the formats <see cref="TarEntryFormat.Ustar"/> (represented by the <see cref="UstarTarEntry"/> class), <see cref="TarEntryFormat.
Pax
"/> (represented by the <see cref="PaxTarEntry"/> class) and <see cref="TarEntryFormat.Gnu"/> (represented by the <see cref="GnuTarEntry"/> class).
System\Formats\Tar\TarEntry.cs (1)
15
/// <remarks>All the properties exposed by this class are supported by the <see cref="TarEntryFormat.V7"/>, <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/> formats.</remarks>
System\Formats\Tar\TarEntryType.cs (1)
14
/// <para>This entry type is specific to the <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/> formats.</para>
System\Formats\Tar\TarFile.cs (2)
330
using (TarWriter writer = new TarWriter(destination, TarEntryFormat.
Pax
, leaveOpen))
384
TarWriter writer = new TarWriter(destination, TarEntryFormat.
Pax
, leaveOpen);
System\Formats\Tar\TarHeader.cs (2)
143
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> UstarMagic,
150
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> UstarVersion,
System\Formats\Tar\TarHeader.Read.cs (3)
78
Debug.Assert(header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
or TarEntryFormat.Gnu);
404
TarEntryType.GlobalExtendedAttributes => TarEntryFormat.
Pax
,
473
case TarEntryFormat.Ustar or TarEntryFormat.
Pax
:
System\Formats\Tar\TarHeader.Write.cs (17)
78
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> FieldLocations.PosixData,
130
TarEntryFormat.Ustar or TarEntryFormat.
Pax
=> FieldLocations.PosixData,
279
TarHeader extendedAttributesHeader = new(TarEntryFormat.
Pax
);
286
WriteWithUnseekableDataStream(TarEntryFormat.
Pax
, tempStream, buffer, shouldAdvanceToEnd: false);
310
WriteWithSeekableDataStream(TarEntryFormat.
Pax
, archiveStream, buffer);
323
TarHeader extendedAttributesHeader = new(TarEntryFormat.
Pax
);
330
await WriteWithUnseekableDataStreamAsync(TarEntryFormat.
Pax
, tempStream, buffer, shouldAdvanceToEnd: false, cancellationToken).ConfigureAwait(false);
354
await WriteWithSeekableDataStreamAsync(TarEntryFormat.
Pax
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
463
WriteWithSeekableDataStream(TarEntryFormat.
Pax
, archiveStream, buffer);
472
return WriteWithSeekableDataStreamAsync(TarEntryFormat.
Pax
, archiveStream, buffer, cancellationToken);
493
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.
Pax
, _typeFlag));
511
case TarEntryFormat.
Pax
:
649
if (_format is not TarEntryFormat.
Pax
and not TarEntryFormat.Gnu)
707
if (_format is not TarEntryFormat.
Pax
)
725
if (_format is not TarEntryFormat.
Pax
)
1070
if (isOctalRange || _format == TarEntryFormat.
Pax
)
1096
if (isOctalRange || _format == TarEntryFormat.
Pax
)
System\Formats\Tar\TarHelpers.cs (1)
361
case TarEntryFormat.
Pax
:
System\Formats\Tar\TarReader.cs (8)
111
/// <para>More than one Global Extended Attributes Entry was found in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para>
113
/// <para>Two or more Extended Attributes entries were found consecutively in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para></exception>
138
TarEntryFormat.
Pax
=> header._typeFlag is TarEntryType.GlobalExtendedAttributes ?
171
/// <para>More than one Global Extended Attributes Entry was found in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para>
173
/// <para>Two or more Extended Attributes entries were found consecutively in the current <see cref="TarEntryFormat.
Pax
"/> archive.</para></exception>
291
TarEntryFormat.
Pax
=> header._typeFlag is TarEntryType.GlobalExtendedAttributes ?
401
actualHeader = TarHeader.TryGetNextHeader(_archiveStream, copyData, TarEntryFormat.
Pax
, processDataBlock: false);
434
TarHeader? actualHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.
Pax
, processDataBlock: false, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarWriter.cs (13)
27
/// <remarks>When using this constructor, <see cref="TarEntryFormat.
Pax
"/> is used as the default format of the entries written to the archive using the <see cref="WriteEntry(string, string?)"/> method.</remarks>
31
: this(archiveStream, TarEntryFormat.
Pax
, leaveOpen: false)
36
/// 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
"/>.
43
: this(archiveStream, TarEntryFormat.
Pax
, leaveOpen)
52
/// <param name="format">The format to use when calling <see cref="WriteEntry(string, string?)"/>. The default value is <see cref="TarEntryFormat.
Pax
"/>.</param>
55
/// <remarks>The recommended format is <see cref="TarEntryFormat.
Pax
"/> for its flexibility.</remarks>
59
public TarWriter(Stream archiveStream, TarEntryFormat format = TarEntryFormat.
Pax
, bool leaveOpen = false)
68
if (format is not TarEntryFormat.V7 and not TarEntryFormat.Ustar and not TarEntryFormat.
Pax
and not TarEntryFormat.Gnu)
203
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/></para>
247
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.
Pax
"/> and <see cref="TarEntryFormat.Gnu"/></para>
294
case TarEntryFormat.
Pax
:
330
TarEntryFormat.
Pax
when entry._header._typeFlag is TarEntryType.GlobalExtendedAttributes => entry._header.WriteAsPaxGlobalExtendedAttributesAsync(_archiveStream, buffer, _nextGlobalExtendedAttributesEntryNumber++, cancellationToken),
331
TarEntryFormat.
Pax
=> entry._header.WriteAsPaxAsync(_archiveStream, buffer, cancellationToken),
System\Formats\Tar\TarWriter.Unix.cs (1)
47
TarEntryFormat.
Pax
=> new PaxTarEntry(entryType, entryName),
System\Formats\Tar\UstarTarEntry.cs (1)
47
if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.
Pax
)