Lines Matching refs:bin_len
282 Py_ssize_t ascii_len, bin_len; in binascii_a2b_uu_impl() local
291 bin_len = (*ascii_data++ - ' ') & 077; in binascii_a2b_uu_impl()
295 if ( (rv=PyBytes_FromStringAndSize(NULL, bin_len)) == NULL ) in binascii_a2b_uu_impl()
299 for( ; bin_len > 0 ; ascii_len--, ascii_data++ ) { in binascii_a2b_uu_impl()
335 bin_len--; in binascii_a2b_uu_impl()
380 Py_ssize_t bin_len, out_len; in binascii_b2a_uu_impl() local
385 bin_len = data->len; in binascii_b2a_uu_impl()
386 if ( bin_len > 45 ) { in binascii_b2a_uu_impl()
397 out_len = 2 + (bin_len + 2) / 3 * 4; in binascii_b2a_uu_impl()
403 if (backtick && !bin_len) in binascii_b2a_uu_impl()
406 *ascii_data++ = ' ' + (unsigned char)bin_len; in binascii_b2a_uu_impl()
408 for( ; bin_len > 0 || leftbits != 0 ; bin_len--, bin_data++ ) { in binascii_b2a_uu_impl()
410 if ( bin_len > 0 ) /* Data */ in binascii_b2a_uu_impl()
450 Py_ssize_t bin_len = ((ascii_len+3)/4)*3; /* Upper bound, corrected later */ in binascii_a2b_base64_impl() local
453 unsigned char *bin_data = _PyBytesWriter_Alloc(&writer, bin_len); in binascii_a2b_base64_impl()
554 Py_ssize_t bin_len, out_len; in binascii_b2a_base64_impl() local
559 bin_len = data->len; in binascii_b2a_base64_impl()
562 assert(bin_len >= 0); in binascii_b2a_base64_impl()
564 if ( bin_len > BASE64_MAXBIN ) { in binascii_b2a_base64_impl()
576 out_len = bin_len*2 + 2; in binascii_b2a_base64_impl()
583 for( ; bin_len > 0 ; bin_len--, bin_data++ ) { in binascii_b2a_base64_impl()