9 writes to _compressedSize
System.IO.Compression (9)
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
753
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
827
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
855
_compressedSize
= 0;
System\IO\Compression\ZipArchiveEntry.cs (6)
119
_compressedSize
= cd.CompressedSize;
175
_compressedSize
= 0; // we don't know these yet
1023
thisRef.
_compressedSize
= backing.Position - initialPosition;
1794
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1842
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1866
_compressedSize
= 0;
25 references to _compressedSize
System.IO.Compression (25)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
261
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
269
totalStreamSize:
_compressedSize
,
456
await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false);
545
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
562
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
567
totalStreamSize:
_compressedSize
,
System\IO\Compression\ZipArchiveEntry.cs (19)
269
return
_compressedSize
;
750
CompressedSize =
_compressedSize
,
756
compressedSizeTruncated = (uint)
_compressedSize
;
930
byte[][] compressedBytes = new byte[(
_compressedSize
/ maxSingleBufferSize) + 1][];
935
compressedBytes[compressedBytes.Length - 1] = new byte[
_compressedSize
% maxSingleBufferSize];
957
_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true);
1089
totalStreamSize:
_compressedSize
,
1142
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData,
_compressedSize
);
1468
_compressedSize
< 0 ||
1469
_compressedSize
> _archive.ArchiveStream.Length - offsetOfCompressedData)
1480
if (
_compressedSize
> int.MaxValue)
1493
private bool AreSizesTooLarge =>
_compressedSize
> uint.MaxValue || _uncompressedSize > uint.MaxValue;
1617
CompressedSize =
_compressedSize
,
1625
compressedSizeTruncated = (uint)
_compressedSize
;
2021
compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_compressedSize
;
2069
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..],
_compressedSize
);
2080
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation),
_compressedSize
);
2110
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..],
_compressedSize
);
2117
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)
_compressedSize
);