Lines Matching refs:bits
169 * 15..0 bits (up to 14 bits incoming base64)
175 * 7..0 bits (6 bits outgoing base64)
220 uint16_t bits;
242 bits=(uint16_t)status;
286 bits=0;
336 } else if(bits!=0) {
337 /* bits are illegally left over, a UChar is incomplete */
361 bits=base64Value;
368 bits=(uint16_t)((bits<<6)|base64Value);
372 *target++=(UChar)((bits<<4)|(base64Value>>2));
379 bits=(uint16_t)(base64Value&3);
383 *target++=(UChar)((bits<<2)|(base64Value>>4));
390 bits=(uint16_t)(base64Value&15);
394 *target++=(UChar)((bits<<6)|base64Value);
400 bits=0;
418 if(bits!=0) {
419 /* bits are illegally left over, a UChar is incomplete */
435 if(U_SUCCESS(*pErrorCode) && pArgs->flush && source==sourceLimit && bits==0) {
438 * but that is ok if bits==0
446 cnv->toUnicodeStatus=((uint32_t)inDirectMode<<24)|((uint32_t)((uint8_t)base64Counter)<<16)|(uint32_t)bits;
469 uint8_t bits;
489 bits=(uint8_t)status;
490 U_ASSERT(bits<=sizeof(toBase64)/sizeof(toBase64[0]));
563 /* write remaining bits for the previous character */
564 *target++=toBase64[bits];
587 * Output 2 or 3 base64 bytes for the remaining bits of the previous character
588 * and the bits of this character, each implicitly in UTF-16BE.
590 * Here, bits is an 8-bit variable because only 6 bits need to be kept from one
591 * character to the next. The actual 2 or 4 bits are shifted to the left edge
592 * of the 6-bits field 5..0 to make the termination of the base64 sequence easier.
611 bits=(uint8_t)((c&15)<<2);
615 *target++=toBase64[bits|(c>>14)];
643 bits=(uint8_t)((c&3)<<4);
647 *target++=toBase64[bits|(c>>12)];
675 bits=0;
692 /* flush remaining bits to the target */
696 *target++=toBase64[bits];
701 cnv->charErrorBuffer[cnv->charErrorBufferLength++]=toBase64[bits];
722 ((uint32_t)inDirectMode<<24)|((uint32_t)base64Counter<<16)|(uint32_t)bits;
877 * 15..0 bitsbits incoming base64)
882 * 7..0 bits (6 bits outgoing base64)
884 * ignore bits 31..25
902 uint16_t bits;
926 bits=(uint16_t)status;
969 bits=0;
1006 bits=base64Value;
1013 bits=(uint16_t)((bits<<6)|base64Value);
1017 c=(UChar)((bits<<4)|(base64Value>>2));
1031 bits=(uint16_t)(base64Value&3);
1035 c=(UChar)((bits<<2)|(base64Value>>4));
1049 bits=(uint16_t)(base64Value&15);
1053 c=(UChar)((bits<<6)|base64Value);
1066 bits=0;
1084 if(bits!=0 || (base64Counter!=0 && base64Counter!=3 && base64Counter!=6)) {
1085 /* bits are illegally left over, a UChar is incomplete */
1145 cnv->toUnicodeStatus=((uint32_t)inDirectMode<<24)|((uint32_t)((uint8_t)base64Counter)<<16)|(uint32_t)bits;
1168 uint8_t bits;
1187 bits=(uint8_t)status;
1260 /* write remaining bits for the previous character */
1261 *target++=TO_BASE64_IMAP(bits);
1282 * Output 2 or 3 base64 bytes for the remaining bits of the previous character
1283 * and the bits of this character, each implicitly in UTF-16BE.
1285 * Here, bits is an 8-bit variable because only 6 bits need to be kept from one
1286 * character to the next. The actual 2 or 4 bits are shifted to the left edge
1287 * of the 6-bits field 5..0 to make the termination of the base64 sequence easier.
1309 bits=(uint8_t)((c&15)<<2);
1313 b=(uint8_t)(bits|(c>>14));
1347 bits=(uint8_t)((c&3)<<4);
1351 b=(uint8_t)(bits|(c>>12));
1385 bits=0;
1402 /* flush remaining bits to the target */
1406 *target++=TO_BASE64_IMAP(bits);
1411 cnv->charErrorBuffer[cnv->charErrorBufferLength++]=TO_BASE64_IMAP(bits);
1432 ((uint32_t)inDirectMode<<24)|((uint32_t)base64Counter<<16)|(uint32_t)bits;