You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
623 B

using System.IO;
using Org.BouncyCastle.Utilities.IO;
namespace Org.BouncyCastle.Bcpg.OpenPgp
{
public class WrappedGeneratorStream
: FilterStream
{
private readonly IStreamGenerator gen;
public WrappedGeneratorStream(
IStreamGenerator gen,
Stream str)
: base(str)
{
this.gen = gen;
}
#if PORTABLE
protected override void Dispose(bool disposing)
{
if (disposing)
{
gen.Close();
return;
}
base.Dispose(disposing);
}
#else
public override void Close()
{
gen.Close();
}
#endif
}
}