init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.IO;
namespace Org.BouncyCastle.Utilities.IO;
public class TeeOutputStream : BaseOutputStream
{
private readonly Stream output;
private readonly Stream tee;
public TeeOutputStream(Stream output, Stream tee)
{
this.output = output;
this.tee = tee;
}
public override void Close()
{
Platform.Dispose(output);
Platform.Dispose(tee);
base.Close();
}
public override void Write(byte[] buffer, int offset, int count)
{
output.Write(buffer, offset, count);
tee.Write(buffer, offset, count);
}
public override void WriteByte(byte b)
{
output.WriteByte(b);
tee.WriteByte(b);
}
}