13 writes to _name
System.Formats.Tar (13)
System\Formats\Tar\TarEntry.cs (1)
166
_header.
_name
= value;
System\Formats\Tar\TarHeader.cs (1)
93
_name
= name;
System\Formats\Tar\TarHeader.Read.cs (3)
114
_name
= paxEaName;
561
_name
= $"{_prefix}/{_name}";
690
_name
= longPath;
System\Formats\Tar\TarHeader.Write.cs (2)
436
_name
= GnuLongMetadataName, // Same name for both longpath or longlink
481
_name
= isGea ?
System\Formats\Tar\TarReader.cs (6)
508
thirdHeader.
_name
= secondHeader._name;
514
thirdHeader.
_name
= header._name;
531
secondHeader.
_name
= header._name;
584
thirdHeader.
_name
= secondHeader._name;
590
thirdHeader.
_name
= header._name;
607
secondHeader.
_name
= header._name;
29 references to _name
System.Formats.Tar (29)
System\Formats\Tar\TarEntry.cs (1)
162
get => _header.
_name
;
System\Formats\Tar\TarHeader.cs (1)
105
: this(format, other.
_name
, other._mode, other._mTime, typeFlag)
System\Formats\Tar\TarHeader.Read.cs (5)
480
throw new InvalidDataException(SR.Format(SR.TarPosixFormatExpected,
_name
));
498
throw new InvalidDataException(SR.Format(SR.TarGnuFormatExpected,
_name
));
561
_name = $"{_prefix}/{
_name
}";
580
ReadExtendedAttributesFromBuffer(span,
_name
);
602
ReadExtendedAttributesFromBuffer(memory.Span,
_name
);
System\Formats\Tar\TarHeader.Write.cs (10)
374
if (Encoding.UTF8.GetByteCount(
_name
) > FieldLengths.Name)
376
TarHeader longPathHeader = GetGnuLongMetadataHeader(TarEntryType.LongPath,
_name
);
410
if (Encoding.UTF8.GetByteCount(
_name
) > FieldLengths.Name)
412
TarHeader longPathHeader = GetGnuLongMetadataHeader(TarEntryType.LongPath,
_name
);
524
ReadOnlySpan<char> name =
_name
;
550
if (GetUtf8TextLength(
_name
) > MaxPathName)
556
int encoded = Encoding.UTF8.GetBytes(
_name
, encodingBuffer);
910
ExtendedAttributes[PaxEaName] =
_name
;
1153
ReadOnlySpan<char> dirName = Path.GetDirectoryName(
_name
.AsSpan());
1156
ReadOnlySpan<char> fileName = Path.GetFileName(
_name
.AsSpan());
System\Formats\Tar\TarReader.cs (12)
505
Debug.Assert(secondHeader.
_name
!= null);
508
thirdHeader._name = secondHeader.
_name
;
512
Debug.Assert(header.
_name
!= null);
514
thirdHeader._name = header.
_name
;
530
Debug.Assert(header.
_name
!= null);
531
secondHeader._name = header.
_name
;
581
Debug.Assert(secondHeader.
_name
!= null);
584
thirdHeader._name = secondHeader.
_name
;
588
Debug.Assert(header.
_name
!= null);
590
thirdHeader._name = header.
_name
;
606
Debug.Assert(header.
_name
!= null);
607
secondHeader._name = header.
_name
;