Lines Matching refs:messageSize
704 U32 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1; in FUZ_unitTests() local
715 while (iNext + messageSize < testCompressedSize) { in FUZ_unitTests()
716 XXH64_update(&xxhOrig, testInput + iNext, messageSize); in FUZ_unitTests()
719 memcpy (ringBuffer + rNext, testInput + iNext, messageSize); in FUZ_unitTests()
720 …ess_fast_continue(&streamingState, ringBuffer + rNext, testCompressed, messageSize, testCompressed… in FUZ_unitTests()
723 …Z4_decompress_safe_continue(&decodeState, testCompressed, testVerify + dNext, result, messageSize); in FUZ_unitTests()
724 … FUZ_CHECKTEST(result!=(int)messageSize, "ringBuffer : LZ4_decompress_safe() test failed"); in FUZ_unitTests()
726 XXH64_update(&xxhNew, testVerify + dNext, messageSize); in FUZ_unitTests()
731 iNext += messageSize; in FUZ_unitTests()
732 rNext += messageSize; in FUZ_unitTests()
733 dNext += messageSize; in FUZ_unitTests()
734 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1; in FUZ_unitTests()
735 if (rNext + messageSize > ringBufferSize) rNext = 0; in FUZ_unitTests()
736 if (dNext + messageSize > dBufferSize) dNext = 0; in FUZ_unitTests()
855 U32 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1; in FUZ_unitTests() local
866 while (iNext + messageSize < testCompressedSize) { in FUZ_unitTests()
867 XXH64_update(&xxhOrig, testInput + iNext, messageSize); in FUZ_unitTests()
870 memcpy (ringBuffer + rNext, testInput + iNext, messageSize); in FUZ_unitTests()
871 …t = LZ4_compress_HC_continue(&sHC, ringBuffer + rNext, testCompressed, messageSize, testCompressed… in FUZ_unitTests()
874 …Z4_decompress_safe_continue(&decodeState, testCompressed, testVerify + dNext, result, messageSize); in FUZ_unitTests()
875 … FUZ_CHECKTEST(result!=(int)messageSize, "ringBuffer : LZ4_decompress_safe() test failed"); in FUZ_unitTests()
877 XXH64_update(&xxhNew, testVerify + dNext, messageSize); in FUZ_unitTests()
882 iNext += messageSize; in FUZ_unitTests()
883 rNext += messageSize; in FUZ_unitTests()
884 dNext += messageSize; in FUZ_unitTests()
885 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1; in FUZ_unitTests()
886 if (rNext + messageSize > ringBufferSize) rNext = 0; in FUZ_unitTests()
887 if (dNext + messageSize > dBufferSize) dNext = 0; in FUZ_unitTests()
897 U32 messageSize; in FUZ_unitTests() local
913 messageSize = BSIZE1; in FUZ_unitTests()
914 XXH64_update(&xxhOrig, testInput + iNext, messageSize); in FUZ_unitTests()
917 …lt = LZ4_compress_HC_continue(&sHC, testInput + iNext, testCompressed, messageSize, testCompressed… in FUZ_unitTests()
920 …Z4_decompress_safe_continue(&decodeState, testCompressed, testVerify + dNext, result, messageSize); in FUZ_unitTests()
921 … FUZ_CHECKTEST(result!=(int)messageSize, "64K D.ringBuffer : LZ4_decompress_safe() test failed"); in FUZ_unitTests()
923 XXH64_update(&xxhNew, testVerify + dNext, messageSize); in FUZ_unitTests()
928 dNext += messageSize; in FUZ_unitTests()
929 totalMessageSize += messageSize; in FUZ_unitTests()
930 messageSize = BSIZE2; in FUZ_unitTests()
932 memcpy(testInput + iNext, testInput + 8, messageSize); in FUZ_unitTests()
936 XXH64_update(&xxhOrig, testInput + iNext, messageSize); in FUZ_unitTests()
939 …lt = LZ4_compress_HC_continue(&sHC, testInput + iNext, testCompressed, messageSize, testCompressed… in FUZ_unitTests()
942 …Z4_decompress_safe_continue(&decodeState, testCompressed, testVerify + dNext, result, messageSize); in FUZ_unitTests()
943 … FUZ_CHECKTEST(result!=(int)messageSize, "64K D.ringBuffer : LZ4_decompress_safe() test failed"); in FUZ_unitTests()
945 XXH64_update(&xxhNew, testVerify + dNext, messageSize); in FUZ_unitTests()
951 dNext += messageSize; in FUZ_unitTests()
952 totalMessageSize += messageSize; in FUZ_unitTests()
953 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1; in FUZ_unitTests()