System.HexConverter
Map from an ASCII char to its hex value, e.g. arr['b'] == 11. 0xFF means it's not a hex digit.
public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = 0)
public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = 0)
public static void ToBytesBuffer(byte value, Span<byte> buffer, int startingIndex = 0, Casing casing = 0)
public static void ToCharsBuffer(byte value, Span<char> buffer, int startingIndex = 0, Casing casing = 0)
public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)