mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
oops better really to the upper case version
This commit is contained in:
@@ -1155,14 +1155,14 @@ namespace OpenSim.Framework
|
||||
public static char LowNibbleToHexByteCharHighcaps(byte b)
|
||||
{
|
||||
b &= 0x0f;
|
||||
return (char)(b > 9 ? b + 0x57 : b + '0');
|
||||
return (char)(b > 9 ? b + 0x37 : b + '0');
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static char HighNibbleToHexByteCharHighcaps(byte b)
|
||||
{
|
||||
b >>= 4;
|
||||
return (char)(b > 9 ? b + 0x57 : b + '0');
|
||||
return (char)(b > 9 ? b + 0x37 : b + '0');
|
||||
}
|
||||
|
||||
public static string bytesToHexString(byte[] bytes, bool lowerCaps)
|
||||
|
||||
Reference in New Issue
Block a user