Mania++
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
Hex Class Reference

Utility to print char arrays/pointers as hexadecimal values. More...

#include <Hex.h>

Static Public Member Functions

static void Print (char message[], int messageLength)
 Prints char array as hexadecimal values. More...
 
static void Print (char *data)
 Prints char pointer as hexadecimal values. More...
 

Detailed Description

Utility to print char arrays/pointers as hexadecimal values.

Member Function Documentation

static void Hex::Print ( char  message[],
int  messageLength 
)
inlinestatic

Prints char array as hexadecimal values.

For printing the char array as hexadecimal, it uses the std::hex option. The char array is casted and printed char by char.

Parameters
messageChar array with message to be displayed.
messageLengthLength of the char array.
static void Hex::Print ( char *  data)
inlinestatic

Prints char pointer as hexadecimal values.

Casts the pointer to a char array and uses the char array version of the function.

Parameters
dataChar pointer with message to be displayed.

The documentation for this class was generated from the following file: