Exemplo n.º 1
0
 private void _FinishCurrentEntry()
 {
     if (_currentEntry != null)
     {
         if (_needToWriteEntryHeader)
         {
             _InitiateCurrentEntry(finishing: true);
         }
         _currentEntry.FinishOutputStream(_outputStream, _outputCounter, _encryptor, _deflater, _entryOutputStream);
         _currentEntry.PostProcessOutput(_outputStream);
         if (_currentEntry.OutputUsedZip64.HasValue)
         {
             _anyEntriesUsedZip64 |= _currentEntry.OutputUsedZip64.Value;
         }
         _outputCounter     = null;
         _encryptor         = (_deflater = null);
         _entryOutputStream = null;
     }
 }
Exemplo n.º 2
0
 private void SetupStream()
 {
     _crcStream  = _currentEntry.InternalOpenReader(_Password);
     _LeftToRead = _crcStream.Length;
     _needSetup  = false;
 }