Home | History | Annotate | Download | only in Modules

Lines Matching defs:max_length

147                                    Py_ssize_t max_length)
161 assert(length <= max_length);
162 /* can not scale the buffer over max_length */
163 if (length == max_length)
165 if (length <= (max_length >> 1))
168 new_length = max_length;
575 "decompress(data, max_length) -- Return a string containing the decompressed\n"
581 "If the max_length parameter is specified then the return value will be\n"
582 "no longer than max_length. Unconsumed input data will be stored in\n"
589 Py_ssize_t inplen, max_length = 0;
595 &inplen, &max_length))
597 if (max_length < 0) {
599 "max_length must be greater than zero");
601 } else if (max_length == 0)
604 hard_limit = max_length;
609 /* limit amount of data allocated to max_length */
610 if (max_length && obuflen > max_length)
611 obuflen = max_length;
622 if (max_length > 0) {