System.HexConverter
namespace System
{
internal static class HexConverter
{
public enum Casing : uint
{
Upper = 0,
Lower = 8224
}
public static ReadOnlySpan<byte> CharToHexLookup { get; }
public static void ToBytesBuffer(byte value, Span<byte> buffer, int startingIndex = 0, Casing casing = Casing.Upper);
public static void ToCharsBuffer(byte value, Span<char> buffer, int startingIndex = 0, Casing casing = Casing.Upper);
public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper);
public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper);
public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper);
public static char ToCharUpper(int value);
public static char ToCharLower(int value);
public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed);
public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed);
public static int FromChar(int c);
public static int FromUpperChar(int c);
public static int FromLowerChar(int c);
public static bool IsHexChar(int c);
public static bool IsHexUpperChar(int c);
public static bool IsHexLowerChar(int c);
}
}