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.
jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/PipedOutputStream.cs

38 lines
721 B

namespace SharpCifs.Util.Sharpen
{
internal class PipedOutputStream : OutputStream
8 years ago
{
PipedInputStream _ips;
8 years ago
public PipedOutputStream()
{
}
8 years ago
public PipedOutputStream(PipedInputStream iss) : this()
{
Attach(iss);
}
8 years ago
public override void Close()
{
_ips.Close();
base.Close();
}
8 years ago
internal void Attach(PipedInputStream iss)
{
_ips = iss;
}
8 years ago
public override void Write(int b)
{
_ips.Write(b);
}
8 years ago
public override void Write(byte[] b, int offset, int len)
{
_ips.Write(b, offset, len);
}
}
}