Home
last modified time | relevance | path

Searched refs:prefsPtr (Results 1 – 5 of 5) sorted by relevance

/third_party/lz4/lib/
Dlz4file.c181 …rorCode_t LZ4F_writeOpen(LZ4_writeFile_t** lz4fWrite, FILE* fp, const LZ4F_preferences_t* prefsPtr) in LZ4F_writeOpen() argument
193 if (prefsPtr != NULL) { in LZ4F_writeOpen()
194 switch (prefsPtr->frameInfo.blockSizeID) { in LZ4F_writeOpen()
216 (*lz4fWrite)->dstBufMaxSize = LZ4F_compressBound((*lz4fWrite)->maxWriteSize, prefsPtr); in LZ4F_writeOpen()
230 ret = LZ4F_compressBegin((*lz4fWrite)->cctxPtr, buf, LZ4F_HEADER_SIZE_MAX, prefsPtr); in LZ4F_writeOpen()
Dlz4frame.h287 const LZ4F_preferences_t* prefsPtr);
304 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr);
648 const LZ4F_preferences_t* prefsPtr);
Dlz4file.h73 …orCode_t LZ4F_writeOpen(LZ4_writeFile_t** lz4fWrite, FILE* fp, const LZ4F_preferences_t* prefsPtr);
Dlz4frame.c378 …{ const LZ4F_preferences_t* const prefsPtr = (preferencesPtr==NULL) ? &prefsNull : preferencesPt… in LZ4F_compressBound_internal() local
379 U32 const flush = prefsPtr->autoFlush | (srcSize==0); in LZ4F_compressBound_internal()
380 LZ4F_blockSizeID_t const blockID = prefsPtr->frameInfo.blockSizeID; in LZ4F_compressBound_internal()
390 size_t const blockCRCSize = BFSize * prefsPtr->frameInfo.blockChecksumFlag; in LZ4F_compressBound_internal()
391 size_t const frameEnd = BHSize + (prefsPtr->frameInfo.contentChecksumFlag*BFSize); in LZ4F_compressBound_internal()
/third_party/lz4/tests/
Dframetest.c1033 const LZ4F_preferences_t* prefsPtr = &prefs; in fuzzerTests() local
1045 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
1057 …ssFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart, srcSize, prefsPtr); in fuzzerTests()
1064 …BYTE* const oend = op + (neverFlush ? LZ4F_compressFrameBound(srcSize, prefsPtr) : compressedBuffe… in fuzzerTests()
1068 { size_t const fhSize = LZ4F_compressBegin(cCtx, op, (size_t)(oend-op), prefsPtr); in fuzzerTests()
1077 size_t const oSize = LZ4F_compressBound(iSize, prefsPtr); in fuzzerTests()
1086 && prefsPtr != NULL /* prefs are set */ in fuzzerTests()
1117 if ((prefsPtr!= NULL) && prefsPtr->frameInfo.blockChecksumFlag) { in fuzzerTests()
1124 { size_t const dstEndSafeSize = LZ4F_compressBound(0, prefsPtr); in fuzzerTests()