Lines Matching defs:encodedRes
26 std::string encodedRes = std::string(encodedStrLen, '\0');
28 // 2: the index do not exceed the range of encodedRes and form a complete four-character block
29 for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFORM_CHAR_NUM) {
32 encodedRes[i] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0xff) >> 2];
34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 |
37 encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 |
40 encodedRes[i + 3] = base64CharSet[static_cast<unsigned int>(inputString[j + 2]) & 0x3f];
46 encodedRes[encodedRes.length() - 2] = '=';
47 encodedRes[encodedRes.length() - 1] = '=';
51 encodedRes[encodedRes.length() - 1] = '=';
56 return encodedRes;
90 // 2: the index do not exceed the range of encodedRes and form a complete four-character block