7 #ifndef ATLAS_CODECS_UTILITY_H 8 #define ATLAS_CODECS_UTILITY_H 23 namespace Atlas {
namespace Codecs {
30 _snprintf(hex, 3,
"%x", c);
32 snprintf(hex, 3,
"%x", c);
41 if (sscanf(hex,
"%x", &c) == 1) {
50 #endif // ATLAS_CODECS_UTILITY_H const std::string charToHex(char c)
Convert an ASCII char to its hexadecimal value.
Definition: Utility.h:26
The Atlas namespace.
Definition: Bridge.h:20
char hexToChar(const char *hex)
Convert a string with a hexadecimal value (2 characters) to an ASCII char.
Definition: Utility.h:38