/* Converts an 8-bit Hex Char into a INTN. */
INTN HexCharToInt(IN CHAR8 Char)
/* Converts an 8-bit Hex Char into a INTN. */
INTN HexCharToInt(IN CHAR8 Char)
{
  if ((Char >= 'A') && (Char <= 'F')) {
    return Char - 'A' + 10;
  } else if ((Char >= 'a') && (Char <= 'f')) {
    return Char - 'a' + 10;
  } else if ((Char >= '0') && (Char <= '9')) {
    return Char - '0';
  } else {
    return -1;
  }
}