9 writes to _compressedSize
System.IO.Compression (9)
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
783
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
857
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
885
_compressedSize
= 0;
System\IO\Compression\ZipArchiveEntry.cs (6)
119
_compressedSize
= cd.CompressedSize;
175
_compressedSize
= 0; // we don't know these yet
1037
thisRef.
_compressedSize
= backing.Position - initialPosition;
1822
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1870
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1894
_compressedSize
= 0;
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;
1645
CompressedSize =
_compressedSize
,
1653
compressedSizeTruncated = (uint)
_compressedSize
;
2049
compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_compressedSize
;
2097
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..],
_compressedSize
);
2108
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation),
_compressedSize
);
2138
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..],
_compressedSize
);
2145
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)
_compressedSize
);