• Home
  • Raw
  • Download

Lines Matching refs:bin_len

197     Py_ssize_t ascii_len, bin_len;  in binascii_a2b_uu()  local
207 bin_len = (*ascii_data++ - ' ') & 077; in binascii_a2b_uu()
211 if ( (rv=PyString_FromStringAndSize(NULL, bin_len)) == NULL ) { in binascii_a2b_uu()
217 for( ; bin_len > 0 ; ascii_len--, ascii_data++ ) { in binascii_a2b_uu()
250 bin_len--; in binascii_a2b_uu()
283 Py_ssize_t bin_len; in binascii_b2a_uu() local
288 bin_len = pbin.len; in binascii_b2a_uu()
289 if ( bin_len > 45 ) { in binascii_b2a_uu()
297 if ( (rv=PyString_FromStringAndSize(NULL, 2 + (bin_len+2)/3*4)) == NULL ) { in binascii_b2a_uu()
304 *ascii_data++ = ' ' + (bin_len & 077); in binascii_b2a_uu()
306 for( ; bin_len > 0 || leftbits != 0 ; bin_len--, bin_data++ ) { in binascii_b2a_uu()
308 if ( bin_len > 0 ) /* Data */ in binascii_b2a_uu()
368 Py_ssize_t ascii_len, bin_len; in binascii_a2b_base64() local
383 bin_len = ((ascii_len+3)/4)*3; /* Upper bound, corrected later */ in binascii_a2b_base64()
386 if ( (rv=PyString_FromStringAndSize(NULL, bin_len)) == NULL ) { in binascii_a2b_base64()
391 bin_len = 0; in binascii_a2b_base64()
436 bin_len++; in binascii_a2b_base64()
452 if (bin_len > 0) { in binascii_a2b_base64()
454 (void)_PyString_Resize(&rv, bin_len); in binascii_a2b_base64()
475 Py_ssize_t bin_len; in binascii_b2a_base64() local
480 bin_len = pbuf.len; in binascii_b2a_base64()
482 assert(bin_len >= 0); in binascii_b2a_base64()
484 if ( bin_len > BASE64_MAXBIN ) { in binascii_b2a_base64()
493 if ( (rv=PyString_FromStringAndSize(NULL, bin_len*2 + 3)) == NULL ) { in binascii_b2a_base64()
499 for( ; bin_len > 0 ; bin_len--, bin_data++ ) { in binascii_b2a_base64()