3 writes to _archive
System.IO.Compression (3)
System\IO\Compression\ZipArchiveEntry.cs (3)
52_archive = archive; 107_archive = archive; 318_archive = null!;
55 references to _archive
System.IO.Compression (55)
System\IO\Compression\ZipArchiveEntry.cs (55)
147if (_archive.Mode == ZipArchiveMode.Create) 149_archive.AcquireArchiveStream(this); 156public ZipArchive Archive => _archive; 206_fileComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, _archive.EntryNameAndCommentEncoding, ushort.MaxValue, out bool isUTF8); 232value, _archive.EntryNameAndCommentEncoding, 0 /* No truncation */, out bool isUTF8); 268if (_archive.Mode == ZipArchiveMode.Read) 270if (_archive.Mode == ZipArchiveMode.Create && _everOpenedForWrite) 306if (_archive == null) 312if (_archive.Mode != ZipArchiveMode.Update) 315_archive.ThrowIfDisposed(); 317_archive.RemoveEntry(this); 333switch (_archive.Mode) 341Debug.Assert(_archive.Mode == ZipArchiveMode.Update); 362: _archive?.EntryNameAndCommentEncoding ?? Encoding.UTF8; 380Debug.Assert(_archive.ArchiveReader != null); 381_archive.ArchiveStream.Seek(_offsetOfLocalHeader, SeekOrigin.Begin); 384if (!ZipLocalFileHeader.TrySkipBlock(_archive.ArchiveReader)) 386_storedOffsetOfCompressedData = _archive.ArchiveStream.Position; 472BinaryWriter writer = new BinaryWriter(_archive.ArchiveStream); 564zip64ExtraField.WriteBlock(_archive.ArchiveStream); 566ZipGenericExtraField.WriteAllBlocks(_cdUnknownExtraFields, _archive.ArchiveStream); 582_archive.ArchiveStream.Seek(_offsetOfLocalHeader, SeekOrigin.Begin); 584Debug.Assert(_archive.ArchiveReader != null); 585_lhUnknownExtraFields = ZipLocalFileHeader.GetExtraFields(_archive.ArchiveReader); 600_archive.ArchiveStream.Seek(OffsetOfCompressedData, SeekOrigin.Begin); 604ZipHelper.ReadBytes(_archive.ArchiveStream, _compressedBytes[i], MaxSingleBufferSize); 606ZipHelper.ReadBytes(_archive.ArchiveStream, _compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % MaxSingleBufferSize)); 698Stream compressedStream = new SubReadStream(_archive.ArchiveStream, OffsetOfCompressedData, _compressedSize); 708_archive.DebugAssertIsStillArchiveStreamOwner(this); 711CheckSumAndSizeWriteStream crcSizeStream = GetDataCompressor(_archive.ArchiveStream, true, (object? o, EventArgs e) => 715entry._archive.ReleaseArchiveStream(entry); 769if (_diskNumberStart != _archive.NumberOfThisDisk) 774if (_offsetOfLocalHeader > _archive.ArchiveStream.Length) 779Debug.Assert(_archive.ArchiveReader != null); 780_archive.ArchiveStream.Seek(_offsetOfLocalHeader, SeekOrigin.Begin); 781if (!ZipLocalFileHeader.TrySkipBlock(_archive.ArchiveReader)) 787if (OffsetOfCompressedData + _compressedSize > _archive.ArchiveStream.Length) 861BinaryWriter writer = new BinaryWriter(_archive.ArchiveStream); 889if (_archive.Mode == ZipArchiveMode.Create && _archive.ArchiveStream.CanSeek == false) 956zip64ExtraField.WriteBlock(_archive.ArchiveStream); 958ZipGenericExtraField.WriteAllBlocks(_lhUnknownExtraFields, _archive.ArchiveStream); 975GetDataCompressor(_archive.ArchiveStream, true, null), 1000_archive.ArchiveStream.Write(compressedBytes, 0, compressedBytes.Length); 1007if (_archive.Mode == ZipArchiveMode.Update || !_everOpenedForWrite) 1020long finalPosition = _archive.ArchiveStream.Position; 1021BinaryWriter writer = new BinaryWriter(_archive.ArchiveStream); 1043_archive.ArchiveStream.Seek(_offsetOfLocalHeader + ZipLocalFileHeader.OffsetToVersionFromHeaderStart, 1051_archive.ArchiveStream.Seek(_offsetOfLocalHeader + ZipLocalFileHeader.OffsetToCrcFromHeaderStart, 1074_archive.ArchiveStream.Seek(_offsetOfLocalHeader + ZipLocalFileHeader.SizeOfLocalHeader 1082_archive.ArchiveStream.Seek(finalPosition, SeekOrigin.Begin); 1103BinaryWriter writer = new BinaryWriter(_archive.ArchiveStream); 1146if (_archive == null) 1148_archive.ThrowIfDisposed(); 1352if (_entry._archive.ArchiveStream.CanSeek)