Lines Matching refs:characters
122 * characters.
161 char characters[NUM_ENCODED_DATA_BYTES];
176 /* characters[0] is the 6 left-most bits of src[0] */
177 characters[0] = (char)((src[0] & 0xfc) >> 2);
178 /* characters[0] is the right-most 2 bits of src[0] and the left-most 4 bits of src[1] */
179 characters[1] = (char)(((src[0] & 0x03) << 4) + ((src[1] & 0xf0) >> 4));
180 /* characters[0] is the right-most 4 bits of src[1] and the 2 left-most bits of src[2] */
181 characters[2] = (char)(((src[1] & 0x0f) << 2) + ((src[2] & 0xc0) >> 6));
182 /* characters[3] is the right-most 6 bits of src[2] */
183 characters[3] = (char)(src[2] & 0x3f);
186 assert(characters[0] >= 0 && characters[0] < 64);
187 assert(characters[1] >= 0 && characters[1] < 64);
188 assert(characters[2] >= 0 && characters[2] < 64);
189 assert(characters[3] >= 0 && characters[3] < 64);
193 *p++ = b64_chars[(unsigned char)characters[0]];
198 *p++ = b64_chars[(unsigned char)characters[1]];
203 *p++ = b64_chars[(unsigned char)characters[2]];
208 *p++ = b64_chars[(unsigned char)characters[3]];
223 * and then appending '=' for any missing characters.
290 /* Now we iterate through the src, collecting together four characters