Lines Matching refs:length

501     U32 length = 0;  in read_variable_length()  local
505 return length; in read_variable_length()
510 length += s; in read_variable_length()
513 return length; in read_variable_length()
517 return length; in read_variable_length()
566 size_t length; in LZ4_decompress_generic() local
594 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
599 if (length == RUN_MASK) { in LZ4_decompress_generic()
601length += read_variable_length(&ip, iend-RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
603 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
604 …if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
607 cpy = op+length; in LZ4_decompress_generic()
610 if ((cpy>oend-32) || (ip+length>iend-32)) { goto safe_literal_copy; } in LZ4_decompress_generic()
617 ip += length; op = cpy; in LZ4_decompress_generic()
619 cpy = op+length; in LZ4_decompress_generic()
621 DEBUGLOG(7, "copy %u bytes in a 16-bytes stripe", (unsigned)length); in LZ4_decompress_generic()
630 if (length > 8) { LZ4_memcpy(op+8, ip+8, 8); } in LZ4_decompress_generic()
632 ip += length; op = cpy; in LZ4_decompress_generic()
641 length = token & ML_MASK; in LZ4_decompress_generic()
643 if (length == ML_MASK) { in LZ4_decompress_generic()
646length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
648 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) { goto _output_error; } /* overflo… in LZ4_decompress_generic()
649 length += MINMATCH; in LZ4_decompress_generic()
650 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
654 length += MINMATCH; in LZ4_decompress_generic()
655 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
669 op += length; in LZ4_decompress_generic()
676 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
679 length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
684 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
686 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
687 op += length; in LZ4_decompress_generic()
691 size_t const restSize = length - copySize; in LZ4_decompress_generic()
706 cpy = op + length; in LZ4_decompress_generic()
723 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
736 if ( (endOnInput ? length != RUN_MASK : length <= 8) in LZ4_decompress_generic()
741 op += length; ip += length; in LZ4_decompress_generic()
745 length = token & ML_MASK; /* match length */ in LZ4_decompress_generic()
751 if ( (length != ML_MASK) in LZ4_decompress_generic()
758 op += length + MINMATCH; in LZ4_decompress_generic()
769 if (length == RUN_MASK) { in LZ4_decompress_generic()
771length += read_variable_length(&ip, iend-RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
773 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
774 …if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
778 cpy = op+length; in LZ4_decompress_generic()
783 if ( ((endOnInput) && ((cpy>oend-MFLIMIT) || (ip+length>iend-(2+1+LASTLITERALS))) ) in LZ4_decompress_generic()
797 DEBUGLOG(7, "partialDecoding: literal length = %u", (unsigned)length); in LZ4_decompress_generic()
803 if (ip+length > iend) { in LZ4_decompress_generic()
804 length = (size_t)(iend-ip); in LZ4_decompress_generic()
805 cpy = op + length; in LZ4_decompress_generic()
813 length = (size_t)(oend-op); in LZ4_decompress_generic()
823 if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) { in LZ4_decompress_generic()
825 … DEBUGLOG(6, "ip(%p) + length(%i) = %p != iend (%p)", ip, (int)length, ip+length, iend); in LZ4_decompress_generic()
830 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decomp… in LZ4_decompress_generic()
831 ip += length; in LZ4_decompress_generic()
832 op += length; in LZ4_decompress_generic()
843 ip += length; op = cpy; in LZ4_decompress_generic()
851 length = token & ML_MASK; in LZ4_decompress_generic()
854 if (length == ML_MASK) { in LZ4_decompress_generic()
856length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
858 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) goto _output_error; /* overflow … in LZ4_decompress_generic()
860 length += MINMATCH; in LZ4_decompress_generic()
868 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
869 if (partialDecoding) length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
873 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
875 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
876 op += length; in LZ4_decompress_generic()
880 size_t const restSize = length - copySize; in LZ4_decompress_generic()
896 cpy = op + length; in LZ4_decompress_generic()
901 size_t const mlen = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
940 if (length > 16) { LZ4_wildCopy8(op+8, match+8, cpy); } in LZ4_decompress_generic()