merge common implementations and server implementations

This commit is contained in:
Luke Pulverenti
2017-08-16 02:43:41 -04:00
parent e3531534b8
commit bfcd1b520f
389 changed files with 1212 additions and 1626 deletions
@@ -0,0 +1,37 @@
namespace SharpCifs.Util.Sharpen
{
internal class PipedOutputStream : OutputStream
{
PipedInputStream _ips;
public PipedOutputStream ()
{
}
public PipedOutputStream (PipedInputStream iss) : this()
{
Attach (iss);
}
public override void Close ()
{
_ips.Close ();
base.Close ();
}
internal void Attach (PipedInputStream iss)
{
_ips = iss;
}
public override void Write (int b)
{
_ips.Write (b);
}
public override void Write (byte[] b, int offset, int len)
{
_ips.Write (b, offset, len);
}
}
}