mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use Boost.Endian instead of custom wrappers
This commit is contained in:
committed by
Nik Bougalis
parent
11ab98cced
commit
3aaf6d7857
@@ -20,9 +20,9 @@
|
||||
#ifndef RIPPLE_BASICS_STRINGUTILITIES_H_INCLUDED
|
||||
#define RIPPLE_BASICS_STRINGUTILITIES_H_INCLUDED
|
||||
|
||||
#include <ripple/basics/ByteOrder.h>
|
||||
#include <ripple/basics/Blob.h>
|
||||
#include <ripple/basics/strHex.h>
|
||||
#include <boost/endian/conversion.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <sstream>
|
||||
@@ -43,7 +43,7 @@ inline std::string strHex (Blob const& vucData)
|
||||
|
||||
inline std::string strHex (const std::uint64_t uiHost)
|
||||
{
|
||||
uint64_t uBig = htobe64 (uiHost);
|
||||
uint64_t uBig = boost::endian::native_to_big (uiHost);
|
||||
|
||||
return strHex ((unsigned char*) &uBig, sizeof (uBig));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user