summary refs log tree commit diff
path: root/crypto/src/cms/NullOutputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/NullOutputStream.cs')
-rw-r--r--crypto/src/cms/NullOutputStream.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/crypto/src/cms/NullOutputStream.cs b/crypto/src/cms/NullOutputStream.cs
new file mode 100644
index 000000000..ed937bdeb
--- /dev/null
+++ b/crypto/src/cms/NullOutputStream.cs
@@ -0,0 +1,20 @@
+using System;
+
+using Org.BouncyCastle.Utilities.IO;
+
+namespace Org.BouncyCastle.Cms
+{
+	internal class NullOutputStream
+		: BaseOutputStream
+	{
+		public override void WriteByte(byte b)
+		{
+			// do nothing
+		}
+
+		public override void Write(byte[] buffer, int offset, int count)
+		{
+			// do nothing
+		}
+	}
+}