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)
128_uncompressedSize = cd.UncompressedSize; 184_uncompressedSize = 0; 1049thisRef._uncompressedSize = currentPosition; 1825_uncompressedSize = _storedUncompressedData.Length; 1895_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)
412return _uncompressedSize; 689if ((ulong)_uncompressedSize > (ulong)Array.MaxLength) 695_storedUncompressedData = new MemoryStream((int)_uncompressedSize); 779UncompressedSize = _uncompressedSize 785uncompressedSizeTruncated = (uint)_uncompressedSize; 1149uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress, _uncompressedSize); 1152uncompressedStream = new DeflateManagedStream(compressedStreamToRead, ZipCompressionMethod.Deflate64, _uncompressedSize); 1212return new CrcValidatingReadStream(decompressedStream, _crc32, _uncompressedSize); 1543private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1623Debug.Assert(_uncompressedSize == 0); 1675UncompressedSize = _uncompressedSize, 1683uncompressedSizeTruncated = (uint)_uncompressedSize; 1920bool emptyEncryptedEntry = _uncompressedSize == 0 && Encryption != ZipEncryptionMethod.None; 1921if (_uncompressedSize == 0 && !emptyEncryptedEntry) 1946WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0 && !emptyEncryptedEntry, forceWrite: true); 1975if (_uncompressedSize != 0 || emptyEncryptedEntry) 2000WriteLocalFileHeader(isEmptyFile: _uncompressedSize == 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor); 2080uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize; 2126BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], _uncompressedSize); 2139BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeUncompressedSizeLocation), _uncompressedSize); 2169BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize); 2176BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);