Home | History | Annotate | Download | only in Modules

Lines Matching defs:max_length

465 "decompress(data, max_length) -- Return a string containing the decompressed\n"

471 "If the max_length parameter is specified then the return value will be\n"
472 "no longer than max_length. Unconsumed input data will be stored in\n"
478 int err, inplen, max_length = 0;
485 &inplen, &max_length))
487 if (max_length < 0) {
489 "max_length must be greater than zero");
493 /* limit amount of data allocated to max_length */
494 if (max_length && length > max_length)
495 length = max_length;
515 /* If max_length set, don't continue decompressing if we've already
518 if (max_length && length >= max_length)
524 if (max_length && length > max_length)
525 length = max_length;
538 if(max_length) {