peerplays-fc/include/fc/crypto/hex.hpp
2019-04-04 17:59:51 +02:00

15 lines
379 B
C++

#pragma once
#include <stdint.h>
#include <string>
#include <vector>
namespace fc {
uint8_t from_hex( char c );
std::string to_hex( const char* d, uint32_t s );
std::string to_hex( const std::vector<char>& data );
/**
* @return the number of bytes decoded
*/
size_t from_hex( const std::string& hex_str, char* out_data, size_t out_data_len );
}