summary refs log tree commit diff
path: root/crypto/src/util/io
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-03-22 22:28:24 +1030
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-03-22 22:28:24 +1030
commit511a6af913f64908ada0ad8aeb19fd7a8f7e9575 (patch)
treed90af4ce8482cb4ec2ad8e2d6f9639635081d104 /crypto/src/util/io
parentChange TLS server default DH parameters to 2048-bit group from RFC 3526 (diff)
downloadBouncyCastle.NET-ed25519-511a6af913f64908ada0ad8aeb19fd7a8f7e9575.tar.xz
Simple refactoring to follow bc-java code
Diffstat (limited to 'crypto/src/util/io')
-rw-r--r--crypto/src/util/io/Streams.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/src/util/io/Streams.cs b/crypto/src/util/io/Streams.cs
index 70957acc7..cc7fa924c 100644
--- a/crypto/src/util/io/Streams.cs
+++ b/crypto/src/util/io/Streams.cs
@@ -90,5 +90,11 @@ namespace Org.BouncyCastle.Utilities.IO
 			}
 			return total;
 		}
-	}
+
+        /// <exception cref="IOException"></exception>
+        public static void WriteBufTo(MemoryStream buf, Stream output)
+        {
+            buf.WriteTo(output);
+        }
+    }
 }