Home
last modified time | relevance | path

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

/third_party/lz4/lib/
H A Dlz4file.c181 LZ4F_errorCode_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()
H A Dlz4frame.h281 * `prefsPtr` is optional : you can provide NULL as argument, all preferences will then be set to default.
287 const LZ4F_preferences_t* prefsPtr);
297 * @return is always the same for a srcSize and prefsPtr.
298 * prefsPtr is optional : when NULL is provided, preferences will be set to cover worst case scenario.
304 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr);
330 * Note : LZ4F_flush() is guaranteed to be successful when dstCapacity >= LZ4F_compressBound(0, prefsPtr).
343 * Note : LZ4F_compressEnd() is guaranteed to be successful when dstCapacity >= LZ4F_compressBound(0, prefsPtr).
640 * `prefsPtr` is optional : you may provide NULL as argument,
648 const LZ4F_preferences_t* prefsPtr);
H A Dlz4file.h73 LZ4FLIB_STATIC_API LZ4F_errorCode_t LZ4F_writeOpen(LZ4_writeFile_t** lz4fWrite, FILE* fp, const LZ4F_preferences_t* prefsPtr);
H A Dlz4frame.c367 * prefsPtr is optional : if NULL is provided, preferences will be set to cover worst case scenario.
368 * @return is always the same for a srcSize and prefsPtr, so it can be relied upon to size reusable buffers.
378 { const LZ4F_preferences_t* const prefsPtr = (preferencesPtr==NULL) ? &prefsNull : preferencesPtr; 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/
H A Dframetest.c1033 const LZ4F_preferences_t* prefsPtr = &prefs; in fuzzerTests() local
1045 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
1057 cSize = LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart, srcSize, prefsPtr); in fuzzerTests()
1064 BYTE* const oend = op + (neverFlush ? LZ4F_compressFrameBound(srcSize, prefsPtr) : compressedBufferSize); /* when flushes are possible, can't guarantee a max compressed size */ 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 in fuzzerTests()
[all...]

Completed in 8 milliseconds