* @param output OUT: the encoded string
* @return <code>output</code> (for chaining)
*/
-QByteArray& ReStringUtils::base64Encode(uint8_t const* input, size_t inputLength, QByteArray& output) {
+QByteArray& ReStringUtils::base64Encode(uint8_t const* input, int inputLength, QByteArray& output) {
output.resize(4 * ((inputLength + 2 - ((inputLength + 2) % 3)) / 3));
uint8_t* outCursor = reinterpret_cast<uint8_t*>(output.data());
while (inputLength-- > 3) {
class ReStringUtils {
public:
static QByteArray& base64Decode(const char *input, int inputLength, QByteArray& output);
- static QByteArray& base64Encode(const uint8_t *input, size_t inputLength, QByteArray& output);
+ static QByteArray& base64Encode(const uint8_t *input, int inputLength, QByteArray& output);
static QByteArray& chomp(QByteArray &string, char cc = '\n');
static int countChar(const char* line, char cc);
static int count(const char* source, const char* item);