inline void base64Encode1to4(std::string_view data, std::string &output) {
  uint8_t src0 = CharTo8Bit(data[0]);
  output += base[(uint32_t)((src0 >> 2) & 0x3F)];
  output += base[(uint32_t)((src0 & 0x03) << 4)];
  output += '=';
  output += '=';
}
inline void base64Encode1to4(std::string_view data, std::string &output) {
  uint8_t src0 = CharTo8Bit(data[0]);
  output += base[(uint32_t)((src0 >> 2) & 0x3F)];
  output += base[(uint32_t)((src0 & 0x03) << 4)];
  output += '=';
  output += '=';
}