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)
120_uncompressedSize = cd.UncompressedSize; 176_uncompressedSize = 0; 1036thisRef._uncompressedSize = currentPosition; 1803_uncompressedSize = _storedUncompressedData.Length; 1873_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)
398return _uncompressedSize; 675if ((ulong)_uncompressedSize > (ulong)Array.MaxLength) 681_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 765UncompressedSize = _uncompressedSize 771uncompressedSizeTruncated = (uint)_uncompressedSize; 1123uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress, _uncompressedSize); 1126uncompressedStream = new DeflateManagedStream(compressedStreamToRead, ZipCompressionMethod.Deflate64, _uncompressedSize); 1186return new CrcValidatingReadStream(decompressedStream, _crc32, _uncompressedSize); 1521private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1601Debug.Assert(_uncompressedSize == 0); 1653UncompressedSize = _uncompressedSize, 1661uncompressedSizeTruncated = (uint)_uncompressedSize; 1898bool emptyEncryptedEntry = _uncompressedSize == 0 && Encryption != ZipEncryptionMethod.None; 1899if (_uncompressedSize == 0 && !emptyEncryptedEntry) 1924WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0 && !emptyEncryptedEntry, forceWrite: true); 1953if (_uncompressedSize != 0 || emptyEncryptedEntry) 1978WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor); 2058uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize; 2104BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], _uncompressedSize); 2117BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeUncompressedSizeLocation), _uncompressedSize); 2147BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize); 2154BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);