2 writes to _archiveStream
System.IO.Compression (2)
System\IO\Compression\ZipArchive.cs (2)
160
_archiveStream
= new PositionPreservingWriteOnlyStreamWrapper(stream);
162
_archiveStream
= stream;
21 references to _archiveStream
System.IO.Compression (21)
System\IO\Compression\ZipArchive.cs (21)
167
_archiveReader = new BinaryReader(
_archiveStream
, Encoding.UTF8, leaveOpen: true);
189
if (
_archiveStream
.Length == 0)
356
internal Stream ArchiveStream =>
_archiveStream
;
461
_archiveStream
.Dispose();
471
_archiveStream
.Dispose();
490
_archiveStream
.Seek(_centralDirectoryStart, SeekOrigin.Begin);
524
_archiveStream
.Seek(-ZipEndOfCentralDirectoryBlock.SizeOfBlockWithoutSignature, SeekOrigin.End);
528
if (!ZipHelper.SeekBackwardsToSignature(
_archiveStream
,
533
long eocdStart =
_archiveStream
.Position;
556
if (_centralDirectoryStart >
_archiveStream
.Length)
585
_archiveStream
.Seek(eocdStart - Zip64EndOfCentralDirectoryLocator.SizeOfBlockWithoutSignature, SeekOrigin.Begin);
589
if (ZipHelper.SeekBackwardsToSignature(
_archiveStream
,
605
_archiveStream
.Seek(zip64EOCDOffset, SeekOrigin.Begin);
647
_archiveStream
.Seek(0, SeekOrigin.Begin);
648
_archiveStream
.SetLength(0);
656
long startOfCentralDirectory =
_archiveStream
.Position;
663
long sizeOfCentralDirectory =
_archiveStream
.Position - startOfCentralDirectory;
682
long zip64EOCDRecordStart =
_archiveStream
.Position;
683
Zip64EndOfCentralDirectoryRecord.WriteBlock(
_archiveStream
, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory);
684
Zip64EndOfCentralDirectoryLocator.WriteBlock(
_archiveStream
, zip64EOCDRecordStart);
688
ZipEndOfCentralDirectoryBlock.WriteBlock(
_archiveStream
, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory, _archiveComment);