39 references to ExtendedAttributes
System.Formats.Tar (39)
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
37public IReadOnlyDictionary<string, string> GlobalExtendedAttributes => _readOnlyGlobalExtendedAttributes ??= _header.ExtendedAttributes.AsReadOnly();
System\Formats\Tar\PaxTarEntry.cs (3)
101_header.ExtendedAttributes[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime); 105_header.ExtendedAttributes[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime); 125public IReadOnlyDictionary<string, string> ExtendedAttributes => _readOnlyExtendedAttributes ??= _header.ExtendedAttributes.AsReadOnly();
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)) 638if (!ExtendedAttributes.TryAdd(key, value))
System\Formats\Tar\TarHeader.Write.cs (21)
198WriteAsPaxExtendedAttributes(archiveStream, buffer, ExtendedAttributes, isGea: true, globalExtendedAttributesEntryNumber); 210return WriteAsPaxExtendedAttributesAsync(archiveStream, buffer, ExtendedAttributes, isGea: true, globalExtendedAttributesEntryNumber, cancellationToken); 297extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1); 309extendedAttributesHeader.WriteAsPaxExtendedAttributes(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1); 341await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false); 353await extendedAttributesHeader.WriteAsPaxExtendedAttributesAsync(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false); 946ExtendedAttributes[PaxEaName] = _name; 947ExtendedAttributes[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime); 949TryAddStringField(ExtendedAttributes, PaxEaGName, _gName, FieldLengths.GName); 950TryAddStringField(ExtendedAttributes, PaxEaUName, _uName, FieldLengths.UName); 955ExtendedAttributes[PaxEaLinkName] = _linkName; 960ExtendedAttributes[PaxEaSize] = _size.ToString(); 964ExtendedAttributes.Remove(PaxEaSize); 969ExtendedAttributes[PaxEaUid] = _uid.ToString(); 973ExtendedAttributes.Remove(PaxEaUid); 978ExtendedAttributes[PaxEaGid] = _gid.ToString(); 982ExtendedAttributes.Remove(PaxEaGid); 987ExtendedAttributes[PaxEaDevMajor] = _devMajor.ToString(); 991ExtendedAttributes.Remove(PaxEaDevMajor); 996ExtendedAttributes[PaxEaDevMinor] = _devMinor.ToString(); 1000ExtendedAttributes.Remove(PaxEaDevMinor);
System\Formats\Tar\TarReader.cs (2)
418actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.ExtendedAttributes); 456actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.ExtendedAttributes);