/* change char to int value based on Hex. */
INTN HBufferImageCharToHex(IN CHAR16 Char)
/* change char to int value based on Hex. */
INTN HBufferImageCharToHex(IN CHAR16 Char)
{
  if ((Char >= L'0') && (Char <= L'9')) {
    return (Char - L'0');
  }
  if ((Char >= L'a') && (Char <= L'f')) {
    return (Char - L'a' + 10);
  }
  if ((Char >= L'A') && (Char <= L'F')) {
    return (Char - L'A' + 10);
  }
  return -1;
}