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
+		}
+	}
+}