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