summary refs log tree commit diff
path: root/crypto/src/util/encoders/IEncoder.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-07 21:23:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-07 21:23:45 +0700
commit18fe04a57aa29219d63fda4d8eb6a8586a1f8091 (patch)
tree524e80ee577220eefb92207764daa6ffe10c8d81 /crypto/src/util/encoders/IEncoder.cs
parentSpan usage in Math.Raw (diff)
downloadBouncyCastle.NET-ed25519-18fe04a57aa29219d63fda4d8eb6a8586a1f8091.tar.xz
Span usage in encoders
Diffstat (limited to '')
-rw-r--r--crypto/src/util/encoders/IEncoder.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/util/encoders/IEncoder.cs b/crypto/src/util/encoders/IEncoder.cs
index 5887d5daa..33a2cde18 100644
--- a/crypto/src/util/encoders/IEncoder.cs
+++ b/crypto/src/util/encoders/IEncoder.cs
@@ -11,8 +11,16 @@ namespace Org.BouncyCastle.Utilities.Encoders
 	{
 		int Encode(byte[] data, int off, int length, Stream outStream);
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+		int Encode(ReadOnlySpan<byte> data, Stream outStream);
+#endif
+
 		int Decode(byte[] data, int off, int length, Stream outStream);
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+		int Decode(ReadOnlySpan<byte> data, Stream outStream);
+#endif
+
 		int DecodeString(string data, Stream outStream);
 	}
 }