39 references to ExtendedAttributes
System.Formats.Tar (39)
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
35
public IReadOnlyDictionary<string, string> GlobalExtendedAttributes => field ??= _header.
ExtendedAttributes
.AsReadOnly();
System\Formats\Tar\PaxTarEntry.cs (3)
99
_header.
ExtendedAttributes
[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime);
103
_header.
ExtendedAttributes
[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime);
123
public IReadOnlyDictionary<string, string> ExtendedAttributes => field ??= _header.
ExtendedAttributes
.AsReadOnly();
System\Formats\Tar\TarHeader.Read.cs (12)
113
if (
ExtendedAttributes
.TryGetValue(PaxEaName, out string? paxEaName))
119
if (
ExtendedAttributes
.TryGetValue(PaxEaLinkName, out string? paxEaLinkName))
125
if (TarHelpers.TryGetDateTimeOffsetFromTimestampString(
ExtendedAttributes
, PaxEaMTime, out DateTimeOffset mTime))
131
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaMode, out int mode))
137
if (TarHelpers.TryGetStringAsBaseTenLong(
ExtendedAttributes
, PaxEaSize, out long size))
143
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaUid, out int uid))
149
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaGid, out int gid))
155
if (
ExtendedAttributes
.TryGetValue(PaxEaUName, out string? paxEaUName))
161
if (
ExtendedAttributes
.TryGetValue(PaxEaGName, out string? paxEaGName))
167
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMajor, out int devMajor))
173
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMinor, out int devMinor))
662
if (!
ExtendedAttributes
.TryAdd(key, value))
System\Formats\Tar\TarHeader.Write.cs (21)
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);
947
ExtendedAttributes
[PaxEaName] = _name;
948
ExtendedAttributes
[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime);
950
TryAddStringField(
ExtendedAttributes
, PaxEaGName, _gName, FieldLengths.GName);
951
TryAddStringField(
ExtendedAttributes
, PaxEaUName, _uName, FieldLengths.UName);
956
ExtendedAttributes
[PaxEaLinkName] = _linkName;
961
ExtendedAttributes
[PaxEaSize] = _size.ToString();
965
ExtendedAttributes
.Remove(PaxEaSize);
970
ExtendedAttributes
[PaxEaUid] = _uid.ToString();
974
ExtendedAttributes
.Remove(PaxEaUid);
979
ExtendedAttributes
[PaxEaGid] = _gid.ToString();
983
ExtendedAttributes
.Remove(PaxEaGid);
988
ExtendedAttributes
[PaxEaDevMajor] = _devMajor.ToString();
992
ExtendedAttributes
.Remove(PaxEaDevMajor);
997
ExtendedAttributes
[PaxEaDevMinor] = _devMinor.ToString();
1001
ExtendedAttributes
.Remove(PaxEaDevMinor);
System\Formats\Tar\TarReader.cs (2)
400
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);
438
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);