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)
129_uncompressedSize = cd.UncompressedSize; 185_uncompressedSize = 0; 1050thisRef._uncompressedSize = currentPosition; 1838_uncompressedSize = _storedUncompressedData.Length; 1908_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)
413return _uncompressedSize; 690if ((ulong)_uncompressedSize > (ulong)Array.MaxLength) 696_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 780UncompressedSize = _uncompressedSize 786uncompressedSizeTruncated = (uint)_uncompressedSize; 1150uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress, _uncompressedSize); 1153uncompressedStream = new DeflateManagedStream(compressedStreamToRead, ZipCompressionMethod.Deflate64, _uncompressedSize); 1213return new CrcValidatingReadStream(decompressedStream, _crc32, _uncompressedSize); 1544private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1624Debug.Assert(_uncompressedSize == 0); 1676UncompressedSize = _uncompressedSize, 1684uncompressedSizeTruncated = (uint)_uncompressedSize; 1933bool emptyEncryptedEntry = _uncompressedSize == 0 && Encryption != ZipEncryptionMethod.None; 1934if (_uncompressedSize == 0 && !emptyEncryptedEntry) 1959WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0 && !emptyEncryptedEntry, forceWrite: true); 1988if (_uncompressedSize != 0 || emptyEncryptedEntry) 2013WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor); 2093uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize; 2139BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], _uncompressedSize); 2152BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeUncompressedSizeLocation), _uncompressedSize); 2182BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize); 2189BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);