summary refs log tree commit diff
path: root/crypto/src/util/encoders/IEncoder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/encoders/IEncoder.cs')
-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);
 	}
 }