mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Avoid copying and improve optimization opportunities
This commit is contained in:
committed by
Tom Ritchford
parent
b4058a813b
commit
f072b5b679
@@ -19,22 +19,9 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace ripple {
|
||||
|
||||
char charHex (int iDigit)
|
||||
{
|
||||
if (iDigit >= 0)
|
||||
{
|
||||
if(iDigit < 10)
|
||||
return '0' + iDigit;
|
||||
if(iDigit < 16)
|
||||
return 'A' - 10 + iDigit;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int charUnHex (unsigned char c)
|
||||
{
|
||||
struct HexTab
|
||||
|
||||
Reference in New Issue
Block a user