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