Lines Matching refs:pStart
161 const unsigned char *pStart = nullptr; in Base64Encode() local
173 pStart = src; in Base64Encode()
181 while (pEnd - pStart >= 3) { in Base64Encode()
183 *pos = table[pStart[0] >> 2]; in Base64Encode()
185 *(pos + 1) = table[((pStart[0] & LOWER_2_BITS_MASK) << 4) | (pStart[1] >> 4)]; in Base64Encode()
187 *(pos + 2) = table[((pStart[1] & LOWER_4_BITS_MASK) << 2) | (pStart[2] >> 6)]; in Base64Encode()
189 *(pos + 3) = table[pStart[2] & LOWER_6_BITS_MASK]; in Base64Encode()
193 pStart += 3; in Base64Encode()
197 if (pEnd - pStart > 0) { in Base64Encode()
199 *pos = table[pStart[0] >> 2]; in Base64Encode()
200 if (pEnd - pStart == 1) { // one byte remaining in Base64Encode()
202 *(pos + 1) = table[(pStart[0] & LOWER_2_BITS_MASK) << 4]; in Base64Encode()
207 *(pos + 1) = table[((pStart[0] & LOWER_2_BITS_MASK) << 4) | (pStart[1] >> 4)]; in Base64Encode()
209 *(pos + 2) = table[(pStart[1] & LOWER_4_BITS_MASK) << 2]; in Base64Encode()