diff options
Diffstat (limited to 'crypto/src/util/io/Streams.cs')
-rw-r--r-- | crypto/src/util/io/Streams.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crypto/src/util/io/Streams.cs b/crypto/src/util/io/Streams.cs index 503a1b4f1..506b2489f 100644 --- a/crypto/src/util/io/Streams.cs +++ b/crypto/src/util/io/Streams.cs @@ -100,15 +100,9 @@ namespace Org.BouncyCastle.Utilities.IO /// <exception cref="IOException"></exception> public static int WriteBufTo(MemoryStream buf, byte[] output, int offset) { -#if PORTABLE - byte[] bytes = buf.ToArray(); - bytes.CopyTo(output, offset); - return bytes.Length; -#else int size = (int)buf.Length; - buf.WriteTo(new MemoryStream(output, offset, size, true)); + WriteBufTo(buf, new MemoryStream(output, offset, size)); return size; -#endif } public static void WriteZeroes(Stream outStr, long count) |