5 writes to _format
System.Formats.Tar (5)
System\Formats\Tar\TarHeader.cs (1)
88_format = format;
System\Formats\Tar\TarHeader.Read.cs (4)
437header._format = header._typeFlag switch 490_format = TarEntryFormat.V7; 498_format = TarEntryFormat.Gnu; 506_format = TarEntryFormat.Ustar;
28 references to _format
System.Formats.Tar (28)
System\Formats\Tar\PaxTarEntry.cs (1)
91if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.Pax)
System\Formats\Tar\TarEntry.cs (3)
24protected bool FormatIsOctalOnly => _header._format is TarEntryFormat.V7 or TarEntryFormat.Ustar; 31Debug.Assert(header._format == format); 82public TarEntryFormat Format => _header._format;
System\Formats\Tar\TarHeader.cs (3)
162if (_format == TarEntryFormat.Pax && _ea is not null) 179if (_format == TarEntryFormat.Pax && _ea is not null) 191if (_format == TarEntryFormat.Pax && _ea is not null)
System\Formats\Tar\TarHeader.Read.cs (8)
71if (header._format != TarEntryFormat.V7) 79Debug.Assert(header._format is TarEntryFormat.Ustar or TarEntryFormat.Pax or TarEntryFormat.Gnu); 80if (header._format is TarEntryFormat.Ustar or TarEntryFormat.Pax) 90else if (header._format == TarEntryFormat.Gnu) 435if (header._format == TarEntryFormat.Unknown) 503if (_format == TarEntryFormat.V7) 519if (_format == TarEntryFormat.V7) 525switch (_format)
System\Formats\Tar\TarHeader.Write.cs (10)
564if (_format is TarEntryFormat.V7) 684if (_format is not TarEntryFormat.Pax and not TarEntryFormat.Gnu) 742if (_format is not TarEntryFormat.Pax) 760if (_format is not TarEntryFormat.Pax) 1075if (isOctalRange || _format == TarEntryFormat.Pax) 1079else if (_format == TarEntryFormat.Gnu) 1090throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format)); 1101if (isOctalRange || _format == TarEntryFormat.Pax) 1105else if (_format == TarEntryFormat.Gnu) 1115throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarReader.cs (2)
136TarEntry entry = header._format switch 271TarEntry entry = header._format switch
System\Formats\Tar\UstarTarEntry.cs (1)
47if (other._header._format is TarEntryFormat.Ustar or TarEntryFormat.Pax)