diff --git a/libs/kimath/include/hash_128.h b/libs/kimath/include/hash_128.h index c36fa1252d..447e5797f8 100644 --- a/libs/kimath/include/hash_128.h +++ b/libs/kimath/include/hash_128.h @@ -26,6 +26,8 @@ #define HASH_128_H_ #include +#include +#include /** * A storage class for 128-bit hash value @@ -42,6 +44,15 @@ struct HASH_128 return memcmp( Value64, aOther.Value64, sizeof( Value64 ) ) == 0; } + std::string ToString() const + { + std::stringstream ss; + ss << std::hex << std::uppercase << std::setfill( '0' ) + << std::setw( 16 ) << Value64[0] + << std::setw( 16 ) << Value64[1]; + return ss.str(); + } + public: union {