summary refs log tree commit diff
path: root/crypto/src/util/io/MemoryInputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/io/MemoryInputStream.cs')
-rw-r--r--crypto/src/util/io/MemoryInputStream.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/src/util/io/MemoryInputStream.cs b/crypto/src/util/io/MemoryInputStream.cs
new file mode 100644

index 000000000..d353314ee --- /dev/null +++ b/crypto/src/util/io/MemoryInputStream.cs
@@ -0,0 +1,13 @@ +using System.IO; + +namespace Org.BouncyCastle.Utilities.IO +{ + public class MemoryInputStream : MemoryStream + { + public MemoryInputStream(byte[] buffer) : base(buffer, false) + { + } + + public sealed override bool CanWrite { get { return false; } } + } +}