Atlas  0.7.0
Networking protocol for the Worldforge system.
Utility.h File Reference
#include <cstdio>
#include <string>
Include dependency graph for Utility.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Various utility functions for codec implementation.

This file contains various functions that can be used in implementing an Atlas::Codec.

See also
Atlas::Codec
Author
Stefanus Du Toit sdt@g.nosp@m.mx.n.nosp@m.et, Michael Day miked.nosp@m.ay@c.nosp@m.orpli.nosp@m.nk.c.nosp@m.om.au

Definition in file Utility.h.

Function Documentation

◆ charToHex()

std::string Atlas::Codecs::charToHex ( char  c)
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().

◆ hexToChar()

char Atlas::Codecs::hexToChar ( const char *  hex)
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().