7 writes to _uncompressedSize
System.IO.Compression (7)
System\IO\Compression\ZipArchiveEntry.Async.cs (2)
747_uncompressedSize = _storedUncompressedData.Length; 850_uncompressedSize = 0;
System\IO\Compression\ZipArchiveEntry.cs (5)
124_uncompressedSize = cd.UncompressedSize; 180_uncompressedSize = 0; 1040thisRef._uncompressedSize = currentPosition; 1807_uncompressedSize = _storedUncompressedData.Length; 1877_uncompressedSize = 0;
31 references to _uncompressedSize
System.IO.Compression (31)
System\IO\Compression\ZipArchiveEntry.Async.cs (9)
363if ((ulong)_uncompressedSize > (ulong)Array.MaxLength) 370_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 611if (_uncompressedSize > Array.MaxLength) 616_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 882bool emptyEncryptedEntry = _uncompressedSize == 0 && Encryption != ZipEncryptionMethod.None; 883if (_uncompressedSize == 0 && !emptyEncryptedEntry) 908await WriteLocalFileHeaderAsync(isEmptyFile: _uncompressedSize == 0 && !emptyEncryptedEntry, forceWrite: true, preserveDataDescriptor: false, cancellationToken).ConfigureAwait(false); 937if (_uncompressedSize != 0 || emptyEncryptedEntry) 962await WriteLocalFileHeaderAsync(isEmptyFile: _uncompressedSize == 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.cs (22)
402return _uncompressedSize; 679if ((ulong)_uncompressedSize > (ulong)Array.MaxLength) 685_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 769UncompressedSize = _uncompressedSize 775uncompressedSizeTruncated = (uint)_uncompressedSize; 1127uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress, _uncompressedSize); 1130uncompressedStream = new DeflateManagedStream(compressedStreamToRead, ZipCompressionMethod.Deflate64, _uncompressedSize); 1190return new CrcValidatingReadStream(decompressedStream, _crc32, _uncompressedSize); 1525private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1605Debug.Assert(_uncompressedSize == 0); 1657UncompressedSize = _uncompressedSize, 1665uncompressedSizeTruncated = (uint)_uncompressedSize; 1902bool emptyEncryptedEntry = _uncompressedSize == 0 && Encryption != ZipEncryptionMethod.None; 1903if (_uncompressedSize == 0 && !emptyEncryptedEntry) 1928WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0 && !emptyEncryptedEntry, forceWrite: true); 1957if (_uncompressedSize != 0 || emptyEncryptedEntry) 1982WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor); 2062uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize; 2108BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], _uncompressedSize); 2121BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeUncompressedSizeLocation), _uncompressedSize); 2151BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize); 2158BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);