peerplays-fc/include/fc/hex.hpp

17 lines
368 B
C++
Raw Normal View History

2012-09-08 06:41:28 +00:00
#ifndef _FC_HEX_HPP_
#define _FC_HEX_HPP_
#include <fc/string.hpp>
#include <fc/utility.hpp>
namespace fc {
uint8_t from_hex( char c );
fc::string to_hex( const char* d, uint32_t s );
/**
* @return the number of bytes decoded
*/
size_t from_hex( const fc::string& hex_str, char* out_data, size_t out_data_len );
}
#endif // _FC_HEX_HPP_