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

Go to the source code of this file.

Namespaces

 iroha
 

Functions

std::vector< uint8_t > iroha::stringToBytes (const std::string &source)
 
std::string iroha::bytesToString (const std::vector< uint8_t > &source)
 
template<size_t size>
boost::optional< blob_t< size > > iroha::stringToBlob (const std::string &string)
 
template<size_t size>
boost::optional< blob_t< size > > iroha::hexstringToArray (const std::string &string)