• Home
  • Raw
  • Download

Lines Matching refs:compressedBuffer

177     void* const compressedBuffer = malloc(cBuffSize);  in basicTests()  local
188 if (!CNBuffer || !compressedBuffer || !decodedBuffer) { in basicTests()
223 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests()
232 size_t const fhs = LZ4F_headerSize(compressedBuffer, LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH); in basicTests()
235 CHECK( LZ4F_getFrameInfo(dCtx, &frame_info, compressedBuffer, &avail_in) ); in basicTests()
250 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests()
255 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests()
265 …CHECK( LZ4F_decompress(dCtx, decodedBuffer, &decodedBufferSize, compressedBuffer, &compressedBuffe… in basicTests()
273 const BYTE* cBuff = (const BYTE*) compressedBuffer; in basicTests()
300 const BYTE* ip = (BYTE*)compressedBuffer; in basicTests()
338 memcpy(decodedBuffer, (char*)compressedBuffer+16, 32); /* save correct data */ in basicTests()
339 memcpy((char*)compressedBuffer+16, (const char*)decodedBuffer+32, 32); /* insert noise */ in basicTests()
343 compressedBuffer, &cbSize, in basicTests()
348 memcpy((char*)compressedBuffer+16, decodedBuffer, 32); /* restore correct data */ in basicTests()
357 const BYTE* ip = (const BYTE*) compressedBuffer; in basicTests()
376 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
381 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
387 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
396 const BYTE* ip = (const BYTE*)compressedBuffer; in basicTests()
397 const BYTE* const iend = (const BYTE*)compressedBuffer + cSize; in basicTests()
421 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
427 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
432 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
440 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
448 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
455 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNB… in basicTests()
463 CHECK( LZ4F_decompress(dctx, decodedBuffer, &decodedSize, compressedBuffer, &iSize, NULL) ); in basicTests()
477 BYTE* const ostart = (BYTE*)compressedBuffer; in basicTests()
483 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
487 CHECK( LZ4F_compressEnd(cctx, compressedBuffer, testSize, NULL) ); in basicTests()
493 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
497 CHECK( LZ4F_compressEnd(cctx, compressedBuffer, testSize, NULL) ); in basicTests()
503 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
523 CHECK_V(cErr, LZ4F_compressBegin(cctx, compressedBuffer, testSize, &prefs)); in basicTests()
529 CHECK( LZ4F_getFrameInfo(dCtx, &prefs.frameInfo, compressedBuffer, &cErr) ); in basicTests()
547 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests()
556 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests()
571 compressedBuffer, &compressedSize, in basicTests()
588 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests()
600 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests()
615 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, outCapacity, in basicTests()
628 compressedBuffer, &compressedSize, in basicTests()
651 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, outCapacity, in basicTests()
664 compressedBuffer, &compressedSize, in basicTests()
710 BYTE* ip = (BYTE*)compressedBuffer; in basicTests()
711 BYTE* iend = (BYTE*)compressedBuffer + cSize + 8; in basicTests()
733 ip = (BYTE*)compressedBuffer; in basicTests()
748 DISPLAYLEVEL(3, "Skipped %i bytes \n", (int)(ip - (BYTE*)compressedBuffer - 8)); in basicTests()
751 ip = (BYTE*)compressedBuffer; in basicTests()
764 DISPLAYLEVEL(3, "Skipped %i bytes \n", (int)(ip - (BYTE*)compressedBuffer - 8)); in basicTests()
770 free(compressedBuffer); in basicTests()
934 void* compressedBuffer = NULL; in fuzzerTests() local
952 compressedBuffer = malloc(compressedBufferSize); in fuzzerTests()
953 CHECK(compressedBuffer==NULL, "compressedBuffer Allocation failed"); in fuzzerTests()
989 BYTE* op = (BYTE*)compressedBuffer; in fuzzerTests()
995 …cSize = LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart,… in fuzzerTests()
1001 BYTE* op = (BYTE*)compressedBuffer; in fuzzerTests()
1055 (unsigned)((size_t)(op - (BYTE*)compressedBuffer) + dstEndSize), in fuzzerTests()
1057 assert(op + dstEndSize < (BYTE*)compressedBuffer + compressedBufferSize); in fuzzerTests()
1068 cSize = (size_t)(op - (BYTE*)compressedBuffer); in fuzzerTests()
1075 …{ size_t result = test_lz4f_decompression(compressedBuffer, cSize, srcStart, srcSize, crcOrig, &… in fuzzerTests()
1099 … memcpy((BYTE*)compressedBuffer + pos, (const char*)CNBuffer + noiseStart, noiseLength); in fuzzerTests()
1105 …test_lz4f_decompression(compressedBuffer, cSize, srcStart, srcSize, crcOrig, &randState, dCtxNoise… in fuzzerTests()
1119 free(compressedBuffer); in fuzzerTests()