From e9a17a4811d21de72e8f36f7b423fe44c2cb1cf6 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 6 Apr 2014 12:22:52 +0700 Subject: Move NullOutputStream to util/io --- crypto/src/util/io/NullOutputStream.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 crypto/src/util/io/NullOutputStream.cs (limited to 'crypto/src/util/io/NullOutputStream.cs') 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 + } + } +} -- cgit 1.5.1