mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add strHex(Slice)
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/Slice.h>
|
||||
#include <ripple/basics/strHex.h>
|
||||
#include <algorithm>
|
||||
|
||||
namespace ripple {
|
||||
@@ -50,4 +52,10 @@ int charUnHex (unsigned char c)
|
||||
return xtab[c];
|
||||
}
|
||||
|
||||
std::string
|
||||
strHex(Slice const& slice)
|
||||
{
|
||||
return strHex(slice.data(), slice.size());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user