30 references to ExtendedAttributes
System.Formats.Tar (30)
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
35
public IReadOnlyDictionary<string, string> GlobalExtendedAttributes => field ??= _header.
ExtendedAttributes
.AsReadOnly();
System\Formats\Tar\PaxTarEntry.cs (3)
76
_header.
ExtendedAttributes
[TarHeader.PaxEaName] = entryName;
104
_header.
ExtendedAttributes
[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime);
108
_header.
ExtendedAttributes
[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime);
System\Formats\Tar\TarHeader.cs (2)
230
PopulateExtendedAttributesFromStandardFields(
ExtendedAttributes
);
231
return
ExtendedAttributes
;
System\Formats\Tar\TarHeader.Read.cs (16)
126
if (
ExtendedAttributes
.TryGetValue(PaxEaName, out string? paxEaName))
134
ExtendedAttributes
.TryGetValue(PaxEaLinkName, out string? paxEaLinkName))
140
if (TarHelpers.TryGetDateTimeOffsetFromTimestampString(
ExtendedAttributes
, PaxEaMTime, out DateTimeOffset mTime))
146
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaMode, out int mode))
152
if (TarHelpers.TryGetStringAsBaseTenLong(
ExtendedAttributes
, PaxEaSize, out long size))
162
if (
ExtendedAttributes
.TryGetValue(PaxEaGnuSparseName, out string? gnuSparseName))
169
if (TarHelpers.TryGetStringAsBaseTenLong(
ExtendedAttributes
, PaxEaGnuSparseRealSize, out long gnuSparseRealSize))
180
if (
ExtendedAttributes
.TryGetValue(PaxEaGnuSparseMajor, out string? gnuSparseMajor) && gnuSparseMajor == "1" &&
181
ExtendedAttributes
.TryGetValue(PaxEaGnuSparseMinor, out string? gnuSparseMinor) && gnuSparseMinor == "0")
188
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaUid, out int uid))
194
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaGid, out int gid))
200
if (
ExtendedAttributes
.TryGetValue(PaxEaUName, out string? paxEaUName))
206
if (
ExtendedAttributes
.TryGetValue(PaxEaGName, out string? paxEaGName))
212
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMajor, out int devMajor))
218
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMinor, out int devMinor))
737
if (!
ExtendedAttributes
.TryAdd(key, value))
System\Formats\Tar\TarHeader.Write.cs (6)
199
WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: true, globalExtendedAttributesEntryNumber);
211
return WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: true, globalExtendedAttributesEntryNumber, cancellationToken);
298
extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1);
310
extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1);
342
await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false);
354
await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarReader.cs (2)
400
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);
438
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);