Lines Matching refs:length

502     U32 length = 0;  in read_variable_length()  local
506 return length; in read_variable_length()
511 length += s; in read_variable_length()
514 return length; in read_variable_length()
518 return length; in read_variable_length()
567 size_t length; in LZ4_decompress_generic() local
595 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
600 if (length == RUN_MASK) { in LZ4_decompress_generic()
602length += read_variable_length(&ip, iend-RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
604 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
605 …if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
608 cpy = op+length; in LZ4_decompress_generic()
611 if ((cpy>oend-32) || (ip+length>iend-32)) { goto safe_literal_copy; } in LZ4_decompress_generic()
618 ip += length; op = cpy; in LZ4_decompress_generic()
620 cpy = op+length; in LZ4_decompress_generic()
622 DEBUGLOG(7, "copy %u bytes in a 16-bytes stripe", (unsigned)length); in LZ4_decompress_generic()
631 if (length > 8) { LZ4_memcpy(op+8, ip+8, 8); } in LZ4_decompress_generic()
633 ip += length; op = cpy; in LZ4_decompress_generic()
642 length = token & ML_MASK; in LZ4_decompress_generic()
644 if (length == ML_MASK) { in LZ4_decompress_generic()
647length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
649 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) { goto _output_error; } /* overflo… in LZ4_decompress_generic()
650 length += MINMATCH; in LZ4_decompress_generic()
651 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
655 length += MINMATCH; in LZ4_decompress_generic()
656 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
670 op += length; in LZ4_decompress_generic()
677 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
680 length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
685 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
687 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
688 op += length; in LZ4_decompress_generic()
692 size_t const restSize = length - copySize; in LZ4_decompress_generic()
707 cpy = op + length; in LZ4_decompress_generic()
724 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
737 if ( (endOnInput ? length != RUN_MASK : length <= 8) in LZ4_decompress_generic()
742 op += length; ip += length; in LZ4_decompress_generic()
746 length = token & ML_MASK; /* match length */ in LZ4_decompress_generic()
752 if ( (length != ML_MASK) in LZ4_decompress_generic()
759 op += length + MINMATCH; in LZ4_decompress_generic()
770 if (length == RUN_MASK) { in LZ4_decompress_generic()
772length += read_variable_length(&ip, iend-RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
774 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
775 …if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
779 cpy = op+length; in LZ4_decompress_generic()
784 if ( ((endOnInput) && ((cpy>oend-MFLIMIT) || (ip+length>iend-(2+1+LASTLITERALS))) ) in LZ4_decompress_generic()
798 DEBUGLOG(7, "partialDecoding: literal length = %u", (unsigned)length); in LZ4_decompress_generic()
804 if (ip+length > iend) { in LZ4_decompress_generic()
805 length = (size_t)(iend-ip); in LZ4_decompress_generic()
806 cpy = op + length; in LZ4_decompress_generic()
814 length = (size_t)(oend-op); in LZ4_decompress_generic()
824 if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) { in LZ4_decompress_generic()
826 … DEBUGLOG(6, "ip(%p) + length(%i) = %p != iend (%p)", ip, (int)length, ip+length, iend); in LZ4_decompress_generic()
831 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decomp… in LZ4_decompress_generic()
832 ip += length; in LZ4_decompress_generic()
833 op += length; in LZ4_decompress_generic()
844 ip += length; op = cpy; in LZ4_decompress_generic()
852 length = token & ML_MASK; in LZ4_decompress_generic()
855 if (length == ML_MASK) { in LZ4_decompress_generic()
857length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
859 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) goto _output_error; /* overflow … in LZ4_decompress_generic()
861 length += MINMATCH; in LZ4_decompress_generic()
869 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
870 if (partialDecoding) length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
874 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
876 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
877 op += length; in LZ4_decompress_generic()
881 size_t const restSize = length - copySize; in LZ4_decompress_generic()
897 cpy = op + length; in LZ4_decompress_generic()
902 size_t const mlen = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
941 if (length > 16) { LZ4_wildCopy8(op+8, match+8, cpy); } in LZ4_decompress_generic()