hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
hexutils.hpp File Reference
#include <iterator>
#include <string>
#include <boost/algorithm/hex.hpp>
#include <boost/optional.hpp>
#include "common/result.hpp"
#include "interfaces/common_objects/byte_range.hpp"
Include dependency graph for hexutils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 iroha
 

Functions

template<typename Container >
auto iroha::hexstringToBytestringSize (Container const &c) -> decltype(c.size())
 
template<typename Container >
auto iroha::bytestringToHexstringSize (Container const &c) -> decltype(c.size())
 
template<typename OutputContainer >
void iroha::bytestringToHexstringAppend (shared_model::interface::types::ByteRange input, OutputContainer &destination)
 
std::string iroha::bytestringToHexstring (std::string_view str)
 
iroha::expected::Result< std::string, const char * > iroha::hexstringToBytestringResult (std::string_view str)
 
boost::optional< std::string > iroha::hexstringToBytestring (std::string_view str)
 
template<typename T , typename = std::enable_if_t<std::is_arithmetic<T>::value>>
std::string iroha::numToHexstring (const T val)