Exemple #1
0
 public void close()
 {
     eof        = true;
     buf        = null;
     pendinglen = 0;
     offset     = 0;
     try
     {
         if (_stream != null && closeStream)
         {
             _stream.Close();
         }
     }
     catch (Exception e)
     {
         PngHelperInternal.Log("Exception closing stream", e);
     }
     _stream = null;
 }