45 references to ExtendedAttributes
System.Formats.Tar (45)
System\Formats\Tar\GnuTarEntry.cs (2)
62
changedATime = TarHelpers.TryGetDateTimeOffsetFromTimestampString(paxOther._header.
ExtendedAttributes
, TarHeader.PaxEaATime, out DateTimeOffset aTime);
68
changedCTime = TarHelpers.TryGetDateTimeOffsetFromTimestampString(paxOther._header.
ExtendedAttributes
, TarHeader.PaxEaCTime, out DateTimeOffset cTime);
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
37
public IReadOnlyDictionary<string, string> GlobalExtendedAttributes => _readOnlyGlobalExtendedAttributes ??= _header.
ExtendedAttributes
.AsReadOnly();
System\Formats\Tar\PaxTarEntry.cs (7)
125
_header.
ExtendedAttributes
[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime);
126
_header.
ExtendedAttributes
[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime);
151
public IReadOnlyDictionary<string, string> ExtendedAttributes => _readOnlyExtendedAttributes ??= _header.
ExtendedAttributes
.AsReadOnly();
162
bool containsATime = _header.
ExtendedAttributes
.ContainsKey(TarHeader.PaxEaATime);
163
bool containsCTime = _header.
ExtendedAttributes
.ContainsKey(TarHeader.PaxEaCTime);
171
_header.
ExtendedAttributes
[TarHeader.PaxEaATime] = secondsFromEpochString;
176
_header.
ExtendedAttributes
[TarHeader.PaxEaCTime] = secondsFromEpochString;
System\Formats\Tar\TarHeader.Read.cs (12)
112
if (
ExtendedAttributes
.TryGetValue(PaxEaName, out string? paxEaName))
118
if (
ExtendedAttributes
.TryGetValue(PaxEaLinkName, out string? paxEaLinkName))
124
if (TarHelpers.TryGetDateTimeOffsetFromTimestampString(
ExtendedAttributes
, PaxEaMTime, out DateTimeOffset mTime))
130
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaMode, out int mode))
136
if (TarHelpers.TryGetStringAsBaseTenLong(
ExtendedAttributes
, PaxEaSize, out long size))
142
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaUid, out int uid))
148
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaGid, out int gid))
154
if (
ExtendedAttributes
.TryGetValue(PaxEaUName, out string? paxEaUName))
160
if (
ExtendedAttributes
.TryGetValue(PaxEaGName, out string? paxEaGName))
166
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMajor, out int devMajor))
172
if (TarHelpers.TryGetStringAsBaseTenInteger(
ExtendedAttributes
, PaxEaDevMinor, out int devMinor))
627
if (!
ExtendedAttributes
.TryAdd(key, value))
System\Formats\Tar\TarHeader.Write.cs (21)
195
WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: true, globalExtendedAttributesEntryNumber);
207
return WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: true, globalExtendedAttributesEntryNumber, cancellationToken);
294
extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1);
306
extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1);
338
await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false);
350
await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer,
ExtendedAttributes
, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false);
910
ExtendedAttributes
[PaxEaName] = _name;
911
ExtendedAttributes
[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime);
913
TryAddStringField(
ExtendedAttributes
, PaxEaGName, _gName, FieldLengths.GName);
914
TryAddStringField(
ExtendedAttributes
, PaxEaUName, _uName, FieldLengths.UName);
919
ExtendedAttributes
[PaxEaLinkName] = _linkName;
924
ExtendedAttributes
[PaxEaSize] = _size.ToString();
928
ExtendedAttributes
.Remove(PaxEaSize);
933
ExtendedAttributes
[PaxEaUid] = _uid.ToString();
937
ExtendedAttributes
.Remove(PaxEaUid);
942
ExtendedAttributes
[PaxEaGid] = _gid.ToString();
946
ExtendedAttributes
.Remove(PaxEaGid);
951
ExtendedAttributes
[PaxEaDevMajor] = _devMajor.ToString();
955
ExtendedAttributes
.Remove(PaxEaDevMajor);
960
ExtendedAttributes
[PaxEaDevMinor] = _devMinor.ToString();
964
ExtendedAttributes
.Remove(PaxEaDevMinor);
System\Formats\Tar\TarReader.cs (2)
418
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);
456
actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.
ExtendedAttributes
);