Lines Matching refs:prefs
187 LZ4F_preferences_t prefs; in basicTests() local
188 memset(&prefs, 0, sizeof(prefs)); in basicTests()
353 prefs.frameInfo.blockSizeID = LZ4F_max64KB; in basicTests()
354 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests()
355 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests()
359 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests()
360 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests()
364 prefs.frameInfo.blockSizeID = LZ4F_max256KB; in basicTests()
365 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests()
366 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests()
399 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests()
400 …ssFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs) ); in basicTests()
404 prefs.frameInfo.blockSizeID = LZ4F_max1MB; in basicTests()
405 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests()
406 …ssFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs) ); in basicTests()
410 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests()
411 …ssFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs) ); in basicTests()
415 prefs.frameInfo.blockSizeID = LZ4F_max4MB; in basicTests()
416 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests()
417 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests()
419 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
424 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests()
425 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests()
427 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
432 memset(&prefs, 0, sizeof(prefs)); in basicTests()
433 prefs.frameInfo.blockChecksumFlag = LZ4F_blockChecksumEnabled; in basicTests()
434 …ssFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs) ); in basicTests()
461 memset(&(prefs.frameInfo), 0, sizeof(prefs.frameInfo)); in basicTests()
462 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
464 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
470 prefs.frameInfo.contentSize = testSize; in basicTests()
472 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
474 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
480 prefs.frameInfo.contentSize = testSize+1; in basicTests()
482 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
484 …CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSize, &prefs), CNBuffer, testSi… in basicTests()
500 memset(&prefs.frameInfo, 0, sizeof(prefs.frameInfo)); in basicTests()
501 prefs.frameInfo.dictID = dictID; in basicTests()
502 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
507 memset(&prefs.frameInfo, 0, sizeof(prefs.frameInfo)); in basicTests()
508 CHECK( LZ4F_getFrameInfo(dCtx, &prefs.frameInfo, compressedBuffer, &cErr) ); in basicTests()
509 if (prefs.frameInfo.dictID != dictID) goto _output_error; in basicTests()
510 DISPLAYLEVEL(3, "%u \n", (U32)prefs.frameInfo.dictID); in basicTests()
800 LZ4F_preferences_t prefs; in fuzzerTests() local
801 const LZ4F_preferences_t* prefsPtr = &prefs; in fuzzerTests()
805 memset(&prefs, 0, sizeof(prefs)); in fuzzerTests()
806 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
807 prefs.frameInfo.blockSizeID = (LZ4F_blockSizeID_t)(4 + (FUZ_rand(&randState) & 3)); in fuzzerTests()
808 prefs.frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
809 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
810 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
811 prefs.autoFlush = neverFlush ? 0 : (FUZ_rand(&randState) & 7) == 2; in fuzzerTests()
812 prefs.compressionLevel = -5 + (int)(FUZ_rand(&randState) % 11); in fuzzerTests()