11 writes to _compressedSize
System.IO.Compression (11)
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
783_compressedSize = _archive.ArchiveStream.Position - startPosition; 857_compressedSize = _archive.ArchiveStream.Position - startPosition; 886_compressedSize = 0;
System\IO\Compression\ZipArchiveEntry.cs (8)
128_compressedSize = cd.CompressedSize; 184_compressedSize = 0; // we don't know these yet 1051thisRef._compressedSize = backing.Position - initialPosition; 1864_compressedSize = _archive.ArchiveStream.Position - startPosition; 1912_compressedSize = _archive.ArchiveStream.Position - startPosition; 1937_compressedSize = 0; 2470_entry._compressedSize = _entry._archive.ArchiveStream.Position - startPosition; 2529_entry._compressedSize = _entry._archive.ArchiveStream.Position - startPosition;
25 references to _compressedSize
System.IO.Compression (25)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
275Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 283totalStreamSize: _compressedSize, 486await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false); 575Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 592Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 597totalStreamSize: _compressedSize,
System\IO\Compression\ZipArchiveEntry.cs (19)
278return _compressedSize; 779CompressedSize = _compressedSize, 785compressedSizeTruncated = (uint)_compressedSize; 958byte[][] compressedBytes = new byte[(_compressedSize / maxSingleBufferSize) + 1][]; 963compressedBytes[compressedBytes.Length - 1] = new byte[_compressedSize % maxSingleBufferSize]; 985_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true); 1130totalStreamSize: _compressedSize, 1183Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData, _compressedSize); 1519_compressedSize < 0 || 1520_compressedSize > _archive.ArchiveStream.Length - offsetOfCompressedData) 1531if (_compressedSize > int.MaxValue) 1544private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1675CompressedSize = _compressedSize, 1683compressedSizeTruncated = (uint)_compressedSize; 2092compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_compressedSize; 2140BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..], _compressedSize); 2151BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation), _compressedSize); 2181BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize); 2188BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);