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)
127_compressedSize = cd.CompressedSize; 183_compressedSize = 0; // we don't know these yet 1050thisRef._compressedSize = backing.Position - initialPosition; 1851_compressedSize = _archive.ArchiveStream.Position - startPosition; 1899_compressedSize = _archive.ArchiveStream.Position - startPosition; 1924_compressedSize = 0; 2457_entry._compressedSize = _entry._archive.ArchiveStream.Position - startPosition; 2516_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)
277return _compressedSize; 778CompressedSize = _compressedSize, 784compressedSizeTruncated = (uint)_compressedSize; 957byte[][] compressedBytes = new byte[(_compressedSize / maxSingleBufferSize) + 1][]; 962compressedBytes[compressedBytes.Length - 1] = new byte[_compressedSize % maxSingleBufferSize]; 984_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true); 1129totalStreamSize: _compressedSize, 1182Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData, _compressedSize); 1518_compressedSize < 0 || 1519_compressedSize > _archive.ArchiveStream.Length - offsetOfCompressedData) 1530if (_compressedSize > int.MaxValue) 1543private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1674CompressedSize = _compressedSize, 1682compressedSizeTruncated = (uint)_compressedSize; 2079compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_compressedSize; 2127BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..], _compressedSize); 2138BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation), _compressedSize); 2168BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize); 2175BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);