From 716a491e3ed312da6c80a74e327d62dd4388b11e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 1 Nov 2022 14:39:54 +0700 Subject: More Span-based Stream methods --- crypto/src/util/io/BaseInputStream.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/src/util/io/BaseInputStream.cs') diff --git a/crypto/src/util/io/BaseInputStream.cs b/crypto/src/util/io/BaseInputStream.cs index ebe256632..eaaf9556d 100644 --- a/crypto/src/util/io/BaseInputStream.cs +++ b/crypto/src/util/io/BaseInputStream.cs @@ -45,5 +45,9 @@ namespace Org.BouncyCastle.Utilities.IO public sealed override long Seek(long offset, SeekOrigin origin) { throw new NotSupportedException(); } public sealed override void SetLength(long value) { throw new NotSupportedException(); } public sealed override void Write(byte[] buffer, int offset, int count) { throw new NotSupportedException(); } + +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + public override void Write(ReadOnlySpan buffer) { throw new NotSupportedException(); } +#endif } } -- cgit 1.4.1