20 static void Print(
char message[],
int messageLength)
22 std::cout << std::hex;
23 for(
int i = 0; i < messageLength; i++)
25 std::cout << (
unsigned int)(
unsigned char)message[i] <<
" ";
27 std::cout << std::dec << std::endl;
39 int dataLength = strlen(data);
40 char dataResponse[dataLength];
41 memcpy(&dataResponse, &data, dataLength);
static void Print(char message[], int messageLength)
Prints char array as hexadecimal values.
Definition: Hex.h:20
Utility to print char arrays/pointers as hexadecimal values.
Definition: Hex.h:8
static void Print(char *data)
Prints char pointer as hexadecimal values.
Definition: Hex.h:37