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;
1036
thisRef.
_uncompressedSize
= currentPosition;
1796
_uncompressedSize
= _storedUncompressedData.Length;
1866
_uncompressedSize
= 0;
29 references to _uncompressedSize
System.IO.Compression (29)
System\IO\Compression\ZipArchiveEntry.Async.cs (8)
363
if ((ulong)
_uncompressedSize
> (ulong)Array.MaxLength)
370
_storedUncompressedData = new MemoryStream((int)
_uncompressedSize
);
611
if (
_uncompressedSize
> Array.MaxLength)
616
_storedUncompressedData = new MemoryStream((int)
_uncompressedSize
);
882
if (
_uncompressedSize
== 0)
907
await WriteLocalFileHeaderAsync(isEmptyFile:
_uncompressedSize
== 0, forceWrite: true, preserveDataDescriptor: false, cancellationToken).ConfigureAwait(false);
936
if (
_uncompressedSize
!= 0)
961
await WriteLocalFileHeaderAsync(isEmptyFile:
_uncompressedSize
== 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.cs (21)
398
return
_uncompressedSize
;
675
if ((ulong)
_uncompressedSize
> (ulong)Array.MaxLength)
681
_storedUncompressedData = new MemoryStream((int)
_uncompressedSize
);
765
UncompressedSize =
_uncompressedSize
771
uncompressedSizeTruncated = (uint)
_uncompressedSize
;
1123
uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress,
_uncompressedSize
);
1126
uncompressedStream = new DeflateManagedStream(compressedStreamToRead, ZipCompressionMethod.Deflate64,
_uncompressedSize
);
1186
return new CrcValidatingReadStream(decompressedStream, _crc32,
_uncompressedSize
);
1521
private bool AreSizesTooLarge => _compressedSize > uint.MaxValue ||
_uncompressedSize
> uint.MaxValue;
1601
Debug.Assert(
_uncompressedSize
== 0);
1646
UncompressedSize =
_uncompressedSize
,
1654
uncompressedSizeTruncated = (uint)
_uncompressedSize
;
1891
if (
_uncompressedSize
== 0)
1916
WriteLocalFileHeader(isEmptyFile:
_uncompressedSize
== 0, forceWrite: true);
1945
if (
_uncompressedSize
!= 0)
1970
WriteLocalFileHeader(isEmptyFile:
_uncompressedSize
== 0, forceWrite: forceWrite, preserveDataDescriptor: preserveDataDescriptor);
2050
uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_uncompressedSize
;
2096
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..],
_uncompressedSize
);
2109
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeUncompressedSizeLocation),
_uncompressedSize
);
2139
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..],
_uncompressedSize
);
2146
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)
_uncompressedSize
);