You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose UTF-8 support from FromHexString, TryToHexString, and TryToHexStringLower on the Convert class (#117965)
* Expose UTF-8 support from FromHexString, TryToHexString, and TryToHexStringLower on the Convert class
* Fix copy/paste error
* Fix an assert
* Ensure TryDecodeFrom_Vector128 for UTF8 increments offset correctly
public static byte[] FromBase64CharArray(char[] inArray, int offset, int length) { throw null; }
1296
1296
public static byte[] FromBase64String(string s) { throw null; }
1297
+
public static byte[] FromHexString(System.ReadOnlySpan<byte> utf8Source) { throw null; }
1297
1298
public static byte[] FromHexString(System.ReadOnlySpan<char> chars) { throw null; }
1299
+
public static System.Buffers.OperationStatus FromHexString(System.ReadOnlySpan<byte> utf8Source, System.Span<byte> destination, out int bytesConsumed, out int bytesWritten) { throw null; }
1298
1300
public static System.Buffers.OperationStatus FromHexString(System.ReadOnlySpan<char> source, System.Span<byte> destination, out int charsConsumed, out int bytesWritten) { throw null; }
1299
1301
public static byte[] FromHexString(string s) { throw null; }
1300
1302
public static System.Buffers.OperationStatus FromHexString(string source, System.Span<byte> destination, out int charsConsumed, out int bytesWritten) { throw null; }
@@ -1738,7 +1740,9 @@ public static partial class Convert
1738
1740
public static bool TryFromBase64Chars(System.ReadOnlySpan<char> chars, System.Span<byte> bytes, out int bytesWritten) { throw null; }
1739
1741
public static bool TryFromBase64String(string s, System.Span<byte> bytes, out int bytesWritten) { throw null; }
1740
1742
public static bool TryToBase64Chars(System.ReadOnlySpan<byte> bytes, System.Span<char> chars, out int charsWritten, System.Base64FormattingOptions options = System.Base64FormattingOptions.None) { throw null; }
1743
+
public static bool TryToHexString(System.ReadOnlySpan<byte> source, System.Span<byte> utf8Destination, out int bytesWritten) { throw null; }
1741
1744
public static bool TryToHexString(System.ReadOnlySpan<byte> source, System.Span<char> destination, out int charsWritten) { throw null; }
1745
+
public static bool TryToHexStringLower(System.ReadOnlySpan<byte> source, System.Span<byte> utf8Destination, out int bytesWritten) { throw null; }
1742
1746
public static bool TryToHexStringLower(System.ReadOnlySpan<byte> source, System.Span<char> destination, out int charsWritten) { throw null; }
1743
1747
}
1744
1748
public delegate TOutput Converter<in TInput, out TOutput>(TInput input) where TInput : allows ref struct where TOutput : allows ref struct;
0 commit comments