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)
127
_compressedSize
= cd.CompressedSize;
183
_compressedSize
= 0; // we don't know these yet
1050
thisRef.
_compressedSize
= backing.Position - initialPosition;
1851
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1899
_compressedSize
= _archive.ArchiveStream.Position - startPosition;
1924
_compressedSize
= 0;
2457
_entry.
_compressedSize
= _entry._archive.ArchiveStream.Position - startPosition;
2516
_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)
277
return
_compressedSize
;
778
CompressedSize =
_compressedSize
,
784
compressedSizeTruncated = (uint)
_compressedSize
;
957
byte[][] compressedBytes = new byte[(
_compressedSize
/ maxSingleBufferSize) + 1][];
962
compressedBytes[compressedBytes.Length - 1] = new byte[
_compressedSize
% maxSingleBufferSize];
984
_archive.ArchiveStream.ReadAtLeast(_compressedBytes[_compressedBytes.Length - 1], (int)(
_compressedSize
% maxSingleBufferSize), throwOnEndOfStream: true);
1129
totalStreamSize:
_compressedSize
,
1182
Stream compressedStream = new SubReadStream(_archive.ArchiveStream, offsetOfCompressedData,
_compressedSize
);
1518
_compressedSize
< 0 ||
1519
_compressedSize
> _archive.ArchiveStream.Length - offsetOfCompressedData)
1530
if (
_compressedSize
> int.MaxValue)
1543
private bool AreSizesTooLarge =>
_compressedSize
> uint.MaxValue || _uncompressedSize > uint.MaxValue;
1674
CompressedSize =
_compressedSize
,
1682
compressedSizeTruncated = (uint)
_compressedSize
;
2079
compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)
_compressedSize
;
2127
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..],
_compressedSize
);
2138
BinaryPrimitives.WriteInt64LittleEndian(writeBuffer.Slice(relativeCompressedSizeLocation),
_compressedSize
);
2168
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..],
_compressedSize
);
2175
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)
_compressedSize
);