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