Save bitmaps as PNG
[lsnes.git] / include / library / bintohex.hpp
blob88dac38e475feefea2512820e30b2d64669b5e85
1 #ifndef _library__bintohex__hpp__included__
2 #define _library__bintohex__hpp__included__
4 #include <cstdint>
5 #include <string>
6 #include <cstdlib>
8 /**
9 * Transform binary data into hex string.
11 * Parameter data: The data to transform.
12 * Parameter datalen: Number of bytes of data.
13 * Returns: Hex string.
14 * Throws std::bad_alloc: Not enough memory.
16 std::string binary_to_hex(const uint8_t* data, size_t datalen) throw(std::bad_alloc);
19 #endif