11 writes to _compressedSize
System.IO.Compression (11)
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
783
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
857
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
886
_compressedSize
= 0;
System\IO\Compression\ZipArchiveEntry.cs (8)
119
_compressedSize
= cd.CompressedSize;
175
_compressedSize
= 0; // we don't know these yet
1037
thisRef.
_compressedSize
= backing.Position - initialPosition;
1829
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1877
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1902
_compressedSize
= 0;
2435
_entry.
_compressedSize
= _entry._archive.ArchiveStream.Position - startPosition;
2494
_entry.
_compressedSize
= _entry._archive.ArchiveStream.Position - startPosition;
25 references to _compressedSize
System.IO.Compression (25)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
275
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
283
totalStreamSize:
_compressedSize
,
486
await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false);
575
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
592
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offset,
_compressedSize
);
597
totalStreamSize:
_compressedSize
,
System\IO\Compression\ZipArchiveEntry.cs (19)
269
return
_compressedSize
;
764
CompressedSize =
_compressedSize
,
770
compressedSizeTruncated = (uint)
_compressedSize
;
944
byte[][] compressedBytes = new byte[(
_compressedSize
/ maxSingleBufferSize) + 1][];
949
compressedBytes[compressedBytes.Length - 1] = new byte[
_compressedSize
% maxSingleBufferSize];
971
_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true);
1103
totalStreamSize:
_compressedSize
,
1156
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData,
_compressedSize
);
1496
_compressedSize
< 0 ||
1497
_compressedSize
> _archive.ArchiveStream.Length - offsetOfCompressedData)
1508
if (
_compressedSize
> int.MaxValue)
1521
private bool AreSizesTooLarge =>
_compressedSize
> uint.MaxValue || _uncompressedSize > uint.MaxValue;
1652
CompressedSize =
_compressedSize
,
1660
compressedSizeTruncated = (uint)
_compressedSize
;
2057
compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_compressedSize
;
2105
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..],
_compressedSize
);
2116
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation),
_compressedSize
);
2146
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..],
_compressedSize
);
2153
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)
_compressedSize
);