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)
128
_compressedSize
= cd.CompressedSize;
184
_compressedSize
= 0; // we don't know these yet
1051
thisRef.
_compressedSize
= backing.Position - initialPosition;
1864
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1912
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1937
_compressedSize
= 0;
2470
_entry.
_compressedSize
= _entry._archive.ArchiveStream.Position - startPosition;
2529
_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)
278
return
_compressedSize
;
779
CompressedSize =
_compressedSize
,
785
compressedSizeTruncated = (uint)
_compressedSize
;
958
byte[][] compressedBytes = new byte[(
_compressedSize
/ maxSingleBufferSize) + 1][];
963
compressedBytes[compressedBytes.Length - 1] = new byte[
_compressedSize
% maxSingleBufferSize];
985
_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true);
1130
totalStreamSize:
_compressedSize
,
1183
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData,
_compressedSize
);
1519
_compressedSize
< 0 ||
1520
_compressedSize
> _archive.ArchiveStream.Length - offsetOfCompressedData)
1531
if (
_compressedSize
> int.MaxValue)
1544
private bool AreSizesTooLarge =>
_compressedSize
> uint.MaxValue || _uncompressedSize > uint.MaxValue;
1675
CompressedSize =
_compressedSize
,
1683
compressedSizeTruncated = (uint)
_compressedSize
;
2092
compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_compressedSize
;
2140
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..],
_compressedSize
);
2151
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation),
_compressedSize
);
2181
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..],
_compressedSize
);
2188
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)
_compressedSize
);