lsnes/include/library/bintohex.hpp
Ilari Liusvaara 2cd0bbdcc3 Switch to dedicated SHA-256 implementation
This is in preparation of splitting the emulation cores away.
2012-02-07 17:35:18 +02:00

19 lines
452 B
C++

#ifndef _library__bintohex__hpp__included__
#define _library__bintohex__hpp__included__
#include <cstdint>
#include <string>
#include <cstdlib>
/**
* Transform binary data into hex string.
*
* Parameter data: The data to transform.
* Parameter datalen: Number of bytes of data.
* Returns: Hex string.
* Throws std::bad_alloc: Not enough memory.
*/
std::string binary_to_hex(const uint8_t* data, size_t datalen) throw(std::bad_alloc);
#endif