Flush() public méthode

All buffered data is written to destination
public Flush ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// Close the archive. This simply calls the underlying
 /// tar stream's close() method.
 /// </summary>
 public void CloseArchive()
 {
     if (tarIn != null)
     {
         tarIn.Close();
     }
     else if (tarOut != null)
     {
         tarOut.Flush();
         tarOut.Close();
     }
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!isDisposed)
     {
         isDisposed = true;
         if (disposing)
         {
             if (tarOut != null)
             {
                 tarOut.Flush();
                 tarOut.Dispose();
             }
             if (tarIn != null)
             {
                 tarIn.Dispose();
             }
         }
     }
 }