9 writes to _size
System.Formats.Tar (9)
System\Formats\Tar\TarHeader.cs (1)
109_size = other._size;
System\Formats\Tar\TarHeader.Read.cs (2)
138_size = size; 393_size = size,
System\Formats\Tar\TarHeader.Write.cs (6)
38_size = GetTotalDataBytesToWrite(); 54_size = GetTotalDataBytesToWrite(); 95_size = dataEndPosition - dataStartPosition; 147_size = dataEndPosition - dataStartPosition; 302_size = GetTotalDataBytesToWrite(); 346_size = GetTotalDataBytesToWrite();
45 references to _size
System.Formats.Tar (45)
System\Formats\Tar\TarEntry.cs (1)
116public long Length => _header._dataStream != null ? _header._dataStream.Length : _header._size;
System\Formats\Tar\TarHeader.cs (1)
109_size = other._size;
System\Formats\Tar\TarHeader.Read.cs (28)
202if (_size > 0) 219TarHelpers.AdvanceStream(archiveStream, _size); 233if (_size > 0) 235TarHelpers.SkipBlockAlignmentPadding(archiveStream, _size); 264if (_size > 0) 278_dataStream = await GetDataStreamAsync(archiveStream, copyData, _size, cancellationToken).ConfigureAwait(false); 281await TarHelpers.AdvanceStreamAsync(archiveStream, _size, cancellationToken).ConfigureAwait(false); 295if (_size > 0) 297await TarHelpers.SkipBlockAlignmentPaddingAsync(archiveStream, _size, cancellationToken).ConfigureAwait(false); 313if (_size == 0) 321TarHelpers.CopyBytes(archiveStream, copiedData, _size); 328? new SeekableSubReadStream(archiveStream, archiveStream.Position, _size) 329: new SubReadStream(archiveStream, 0, _size); 569if (_size != 0) 574Span<byte> span = _size <= 256 ? 576(buffer = ArrayPool<byte>.Shared.Rent((int)_size)); 577span = span.Slice(0, (int)_size); 595if (_size != 0) 598byte[] buffer = ArrayPool<byte>.Shared.Rent((int)_size); 599Memory<byte> memory = buffer.AsMemory(0, (int)_size); 610if ((uint)_size > (uint)Array.MaxLength) 639if (_size != 0) 644Span<byte> span = _size <= 256 ? 646(buffer = ArrayPool<byte>.Shared.Rent((int)_size)); 647span = span.Slice(0, (int)_size); 666if (_size != 0) 669byte[] buffer = ArrayPool<byte>.Shared.Rent((int)_size); 670Memory<byte> memory = buffer.AsMemory(0, (int)_size);
System\Formats\Tar\TarHeader.Write.cs (7)
632if (_dataStream != null && _size >= 0) 634checksum += FormatNumeric(_size, buffer.Slice(FieldLocations.Size, FieldLengths.Size)); 777int paddingAfterData = TarHelpers.CalculatePadding(_size); 793int paddingAfterData = TarHelpers.CalculatePadding(_size); 815int paddingAfterData = TarHelpers.CalculatePadding(_size); 922if (_size > Octal12ByteFieldMaxValue) 924ExtendedAttributes[PaxEaSize] = _size.ToString();
System\Formats\Tar\TarReader.cs (8)
212else if (_previouslyReadEntry._header._size > 0) 228if (dataStream.Position < (_previouslyReadEntry._header._size - 1)) 230long bytesToSkip = _previouslyReadEntry._header._size - dataStream.Position; 235TarHelpers.SkipBlockAlignmentPadding(_archiveStream, _previouslyReadEntry._header._size); 254else if (_previouslyReadEntry._header._size > 0) 270if (dataStream.Position < (_previouslyReadEntry._header._size - 1)) 272long bytesToSkip = _previouslyReadEntry._header._size - dataStream.Position; 277await TarHelpers.SkipBlockAlignmentPaddingAsync(_archiveStream, _previouslyReadEntry._header._size, cancellationToken).ConfigureAwait(false);