Lines Matching refs:length
2188 U32 length = 0; in read_variable_length() local
2193 return length; in read_variable_length()
2199 length += s; in read_variable_length()
2203 return length; in read_variable_length()
2207 return length; in read_variable_length()
2256 size_t length; in LZ4_decompress_generic() local
2296 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
2301 if (length == RUN_MASK) in LZ4_decompress_generic()
2304 … length += read_variable_length(&ip, iend - RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
2309 if ((safeDecode) && unlikely((uptrval)(op) + length < (uptrval)(op))) in LZ4_decompress_generic()
2313 if ((safeDecode) && unlikely((uptrval)(ip) + length < (uptrval)(ip))) in LZ4_decompress_generic()
2319 cpy = op + length; in LZ4_decompress_generic()
2323 if ((cpy > oend - 32) || (ip + length > iend - 32)) in LZ4_decompress_generic()
2338 ip += length; in LZ4_decompress_generic()
2343 cpy = op + length; in LZ4_decompress_generic()
2346 DEBUGLOG(7, "copy %u bytes in a 16-bytes stripe", (unsigned)length); in LZ4_decompress_generic()
2360 if (length > 8) in LZ4_decompress_generic()
2365 ip += length; in LZ4_decompress_generic()
2376 length = token & ML_MASK; in LZ4_decompress_generic()
2378 if (length == ML_MASK) in LZ4_decompress_generic()
2385 … length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
2390 if ((safeDecode) && unlikely((uptrval)(op) + length < (uptrval)op)) in LZ4_decompress_generic()
2394 length += MINMATCH; in LZ4_decompress_generic()
2395 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) in LZ4_decompress_generic()
2402 length += MINMATCH; in LZ4_decompress_generic()
2403 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) in LZ4_decompress_generic()
2420 op += length; in LZ4_decompress_generic()
2433 if (unlikely(op + length > oend - LASTLITERALS)) in LZ4_decompress_generic()
2438 length = MIN(length, (size_t)(oend - op)); in LZ4_decompress_generic()
2446 if (length <= (size_t)(lowPrefix - match)) in LZ4_decompress_generic()
2449 memmove(op, dictEnd - (lowPrefix - match), length); in LZ4_decompress_generic()
2450 op += length; in LZ4_decompress_generic()
2456 size_t const restSize = length - copySize; in LZ4_decompress_generic()
2478 cpy = op + length; in LZ4_decompress_generic()
2499 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
2512 if ((endOnInput ? length != RUN_MASK : length <= 8) in LZ4_decompress_generic()
2518 op += length; in LZ4_decompress_generic()
2519 ip += length; in LZ4_decompress_generic()
2523 length = token & ML_MASK; /* match length */ in LZ4_decompress_generic()
2530 … if ((length != ML_MASK) && (offset >= 8) && (dict == withPrefix64k || match >= lowPrefix)) in LZ4_decompress_generic()
2536 op += length + MINMATCH; in LZ4_decompress_generic()
2547 if (length == RUN_MASK) in LZ4_decompress_generic()
2550 … length += read_variable_length(&ip, iend - RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
2555 if ((safeDecode) && unlikely((uptrval)(op) + length < (uptrval)(op))) in LZ4_decompress_generic()
2559 if ((safeDecode) && unlikely((uptrval)(ip) + length < (uptrval)(ip))) in LZ4_decompress_generic()
2566 cpy = op + length; in LZ4_decompress_generic()
2571 …if (((endOnInput) && ((cpy > oend - MFLIMIT) || (ip + length > iend - (2 + 1 + LASTLITERALS)))) ||… in LZ4_decompress_generic()
2585 DEBUGLOG(7, "partialDecoding: literal length = %u", (unsigned)length); in LZ4_decompress_generic()
2591 if (ip + length > iend) in LZ4_decompress_generic()
2593 length = (size_t)(iend - ip); in LZ4_decompress_generic()
2594 cpy = op + length; in LZ4_decompress_generic()
2603 length = (size_t)(oend - op); in LZ4_decompress_generic()
2618 if ((endOnInput) && ((ip + length != iend) || (cpy > oend))) in LZ4_decompress_generic()
2621 … DEBUGLOG(6, "ip(%p) + length(%i) = %p != iend (%p)", ip, (int)length, ip + length, iend); in LZ4_decompress_generic()
2626 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decompr… in LZ4_decompress_generic()
2627 ip += length; in LZ4_decompress_generic()
2628 op += length; in LZ4_decompress_generic()
2642 ip += length; in LZ4_decompress_generic()
2652 length = token & ML_MASK; in LZ4_decompress_generic()
2655 if (length == ML_MASK) in LZ4_decompress_generic()
2658 … length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
2661 if ((safeDecode) && unlikely((uptrval)(op) + length < (uptrval)op)) in LZ4_decompress_generic()
2664 length += MINMATCH; in LZ4_decompress_generic()
2674 if (unlikely(op + length > oend - LASTLITERALS)) in LZ4_decompress_generic()
2677 length = MIN(length, (size_t)(oend - op)); in LZ4_decompress_generic()
2682 if (length <= (size_t)(lowPrefix - match)) in LZ4_decompress_generic()
2685 memmove(op, dictEnd - (lowPrefix - match), length); in LZ4_decompress_generic()
2686 op += length; in LZ4_decompress_generic()
2692 size_t const restSize = length - copySize; in LZ4_decompress_generic()
2713 cpy = op + length; in LZ4_decompress_generic()
2719 size_t const mlen = MIN(length, (size_t)(oend - op)); in LZ4_decompress_generic()
2780 if (length > 16) in LZ4_decompress_generic()