3 writes to _typeFlag
System.Formats.Tar (3)
System\Formats\Tar\TarHeader.cs (1)
116
_typeFlag
= typeFlag;
System\Formats\Tar\TarHeader.Write.cs (2)
439
_typeFlag
= entryType,
487
_typeFlag
= isGea ? TarEntryType.GlobalExtendedAttributes : TarEntryType.ExtendedAttributes;
51 references to _typeFlag
System.Formats.Tar (51)
System\Formats\Tar\PosixTarEntry.cs (2)
59
if (_header.
_typeFlag
is not TarEntryType.BlockDevice and not TarEntryType.CharacterDevice)
86
if (_header.
_typeFlag
is not TarEntryType.BlockDevice and not TarEntryType.CharacterDevice)
System\Formats\Tar\TarEntry.cs (2)
77
public TarEntryType EntryType => _header.
_typeFlag
;
135
if (_header.
_typeFlag
is not TarEntryType.HardLink and not TarEntryType.SymbolicLink)
System\Formats\Tar\TarHeader.cs (1)
264
Debug.Assert(
_typeFlag
is TarEntryType.SymbolicLink or TarEntryType.HardLink);
System\Formats\Tar\TarHeader.Read.cs (11)
175
if (
_typeFlag
is TarEntryType.HardLink or TarEntryType.SymbolicLink &&
206
if (
_typeFlag
is TarEntryType.RegularFile or TarEntryType.V7RegularFile)
300
switch (
_typeFlag
)
317
throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType,
_typeFlag
));
463
header._format = header.
_typeFlag
switch
478
TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header.
_typeFlag
)),
482
_ => (header.
_typeFlag
== TarEntryType.RegularFile) ? TarEntryFormat.Ustar : TarEntryFormat.V7
605
if (
_typeFlag
is TarEntryType.CharacterDevice or TarEntryType.BlockDevice)
686
throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType,
_typeFlag
.ToString()));
734
if (
_typeFlag
== TarEntryType.LongLink)
738
else if (
_typeFlag
== TarEntryType.LongPath)
System\Formats\Tar\TarHeader.Write.cs (11)
162
TarEntryType actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.V7,
_typeFlag
);
172
TarEntryType actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.Ustar,
_typeFlag
);
199
Debug.Assert(
_typeFlag
is TarEntryType.GlobalExtendedAttributes);
264
Debug.Assert(
_typeFlag
is not TarEntryType.GlobalExtendedAttributes);
296
Debug.Assert(
_typeFlag
is not TarEntryType.GlobalExtendedAttributes);
452
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.Gnu,
_typeFlag
));
486
_mode = TarHelpers.GetDefaultMode(
_typeFlag
);
494
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.Pax,
_typeFlag
));
614
Debug.Assert(!string.IsNullOrEmpty(_linkName) ^ (
_typeFlag
is not TarEntryType.SymbolicLink and not TarEntryType.HardLink));
756
if (
_typeFlag
is not TarEntryType.LongLink and not TarEntryType.LongPath)
1135
return
_typeFlag
is TarEntryType.Directory or TarEntryType.DirectoryList ?
System\Formats\Tar\TarReader.cs (20)
218
TarEntryFormat.Pax => header.
_typeFlag
is TarEntryType.GlobalExtendedAttributes ?
258
if (header.
_typeFlag
is TarEntryType.ExtendedAttributes)
268
else if (header.
_typeFlag
is TarEntryType.LongLink or TarEntryType.LongPath)
295
if (actualHeader.
_typeFlag
is TarEntryType.GlobalExtendedAttributes or
300
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader.
_typeFlag
, TarEntryType.ExtendedAttributes));
325
if (secondHeader.
_typeFlag
== header.
_typeFlag
)
327
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, secondHeader.
_typeFlag
, header.
_typeFlag
));
333
if ((header.
_typeFlag
is TarEntryType.LongLink && secondHeader.
_typeFlag
is TarEntryType.LongPath) ||
334
(header.
_typeFlag
is TarEntryType.LongPath && secondHeader.
_typeFlag
is TarEntryType.LongLink))
344
if (thirdHeader.
_typeFlag
is TarEntryType.LongLink or TarEntryType.LongPath)
346
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, thirdHeader.
_typeFlag
, secondHeader.
_typeFlag
));
349
if (header.
_typeFlag
is TarEntryType.LongLink)
357
else if (header.
_typeFlag
is TarEntryType.LongPath)
370
if (header.
_typeFlag
is TarEntryType.LongLink)
375
else if (header.
_typeFlag
is TarEntryType.LongPath)
System\Formats\Tar\TarWriter.cs (4)
248
ValidateEntryLinkName(entry._header.
_typeFlag
, entry._header._linkName);
297
ValidateEntryLinkName(entry._header.
_typeFlag
, entry._header._linkName);
318
if (entry._header.
_typeFlag
is TarEntryType.GlobalExtendedAttributes)
353
TarEntryFormat.Pax when entry._header.
_typeFlag
is TarEntryType.GlobalExtendedAttributes => entry._header.WriteAsPaxGlobalExtendedAttributesCoreAsync<TAdapter>(_archiveStream, buffer, _nextGlobalExtendedAttributesEntryNumber++, cancellationToken),