diff options
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Strings.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/util/Strings.cs b/crypto/src/util/Strings.cs index 29a95a07e..b1a63a3a1 100644 --- a/crypto/src/util/Strings.cs +++ b/crypto/src/util/Strings.cs @@ -78,6 +78,11 @@ namespace Org.BouncyCastle.Utilities return Encoding.UTF8.GetString(bytes); } + public static string FromUtf8ByteArray(byte[] bytes, int index, int count) + { + return Encoding.UTF8.GetString(bytes, index, count); + } + public static byte[] ToUtf8ByteArray(char[] cs) { return Encoding.UTF8.GetBytes(cs); |