private void AddFileContents(string name, Stream stream)
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_0059: Unknown result type (might be due to invalid IL or missing references)
if (stream == null)
{
throw new ArgumentNullException("stream");
}
if (buffer_ == null)
{
buffer_ = new byte[4096];
}
if (events_ != null && events_.Progress != null)
{
StreamUtils.Copy(stream, (Stream)(object)outputStream_, buffer_, events_.Progress, events_.ProgressInterval, this, name);
}
else
{
StreamUtils.Copy(stream, (Stream)(object)outputStream_, buffer_);
}
if (events_ != null)
{
continueRunning_ = events_.OnCompletedFile(name);
}
}