9 writes to _compressedSize
System.IO.Compression (9)
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
753_compressedSize = _archive.ArchiveStream.Position - startPosition; 827_compressedSize = _archive.ArchiveStream.Position - startPosition; 855_compressedSize = 0;
System\IO\Compression\ZipArchiveEntry.cs (6)
119_compressedSize = cd.CompressedSize; 175_compressedSize = 0; // we don't know these yet 1023thisRef._compressedSize = backing.Position - initialPosition; 1794_compressedSize = _archive.ArchiveStream.Position - startPosition; 1842_compressedSize = _archive.ArchiveStream.Position - startPosition; 1866_compressedSize = 0;
25 references to _compressedSize
System.IO.Compression (25)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
261Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 269totalStreamSize: _compressedSize, 456await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false); 545Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 562Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset, _compressedSize); 567totalStreamSize: _compressedSize,
System\IO\Compression\ZipArchiveEntry.cs (19)
269return _compressedSize; 750CompressedSize = _compressedSize, 756compressedSizeTruncated = (uint)_compressedSize; 930byte[][] compressedBytes = new byte[(_compressedSize / maxSingleBufferSize) + 1][]; 935compressedBytes[compressedBytes.Length - 1] = new byte[_compressedSize % maxSingleBufferSize]; 957_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true); 1089totalStreamSize: _compressedSize, 1142Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData, _compressedSize); 1468_compressedSize < 0 || 1469_compressedSize > _archive.ArchiveStream.Length - offsetOfCompressedData) 1480if (_compressedSize > int.MaxValue) 1493private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1617CompressedSize = _compressedSize, 1625compressedSizeTruncated = (uint)_compressedSize; 2021compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_compressedSize; 2069BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..], _compressedSize); 2080BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation), _compressedSize); 2110BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize); 2117BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);