bool base64CharacterToValue(char character, uint8_t *value) {
  static const size_t mask = 127;
  auto index = static_cast<size_t>(character);

  if (index & ~mask) {
    return false;
  }
  *value = base64DecodeTable[index & mask];

  return *value != 255;
}
bool base64CharacterToValue(char character, uint8_t *value) {
  static const size_t mask = 127;
  auto index = static_cast<size_t>(character);

  if (index & ~mask) {
    return false;
  }
  *value = base64DecodeTable[index & mask];

  return *value != 255;
}