summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-04-06 12:22:52 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-04-06 12:22:52 +0700
commite9a17a4811d21de72e8f36f7b423fe44c2cb1cf6 (patch)
treeb53100dc6e69482b09139e62c1fc20b6e0129fb3 /crypto/src/util
parentRemove redundant Mac.Init calls (diff)
downloadBouncyCastle.NET-ed25519-e9a17a4811d21de72e8f36f7b423fe44c2cb1cf6.tar.xz
Move NullOutputStream to util/io
Diffstat (limited to 'crypto/src/util')
-rw-r--r--crypto/src/util/io/NullOutputStream.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/src/util/io/NullOutputStream.cs b/crypto/src/util/io/NullOutputStream.cs
new file mode 100644
index 000000000..13877fa13
--- /dev/null
+++ b/crypto/src/util/io/NullOutputStream.cs
@@ -0,0 +1,18 @@
+using System;
+
+namespace Org.BouncyCastle.Utilities.IO
+{
+	internal class NullOutputStream
+		: BaseOutputStream
+	{
+		public override void WriteByte(byte b)
+		{
+			// do nothing
+		}
+
+		public override void Write(byte[] buffer, int offset, int count)
+		{
+			// do nothing
+		}
+	}
+}