Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <cstdio>
#include <string>
Go to the source code of this file.
Namespaces | |
Atlas | |
Functions | |
std::string | Atlas::Codecs::charToHex (char c) |
Convert an ASCII char to its hexadecimal value. More... | |
char | Atlas::Codecs::hexToChar (const char *hex) |
Convert a string with a hexadecimal value (2 characters) to an ASCII char. More... | |
Various utility functions for codec implementation.
This file contains various functions that can be used in implementing an Atlas::Codec.
Definition in file Utility.h.
|
inline |
Convert an ASCII char to its hexadecimal value.
Definition at line 27 of file Utility.h.
References Atlas::Codecs::charToHex().
Referenced by Atlas::Codecs::charToHex().
|
inline |
Convert a string with a hexadecimal value (2 characters) to an ASCII char.
Definition at line 38 of file Utility.h.
References Atlas::Codecs::hexToChar().
Referenced by Atlas::Codecs::hexToChar().