mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-23 07:35:23 +00:00
A basic memory viewer has been created
This commit is contained in:
@@ -12,26 +12,11 @@
|
||||
|
||||
namespace ComSquare::Utility
|
||||
{
|
||||
std::string to_hex(uint8_t i)
|
||||
{
|
||||
char buf[5];
|
||||
sprintf(buf, "0x%02X", i);
|
||||
return buf;
|
||||
}
|
||||
std::string to_hex(uint8_t i);
|
||||
|
||||
std::string to_hex(uint16_t i)
|
||||
{
|
||||
char buf[7];
|
||||
sprintf(buf, "0x%04X", i);
|
||||
return buf;
|
||||
}
|
||||
std::string to_hex(uint16_t i);
|
||||
|
||||
std::string to_hex(uint24_t i)
|
||||
{
|
||||
char buf[9];
|
||||
sprintf(buf, "0x%06X", i);
|
||||
return buf;
|
||||
}
|
||||
std::string to_hex(uint24_t i);
|
||||
}
|
||||
|
||||
#endif //COMSQUARE_UTILITY_HPP
|
||||
|
||||
Reference in New Issue
Block a user