Searched refs:LZ4F_compressBound (Results 1 - 5 of 5) sorted by relevance
/third_party/lz4/tests/ |
H A D | frametest.c | 243 /* LZ4F_compressBound() : special case : srcSize == 0 */ in basicTests() 244 DISPLAYLEVEL(3, "LZ4F_compressBound(0) = "); in basicTests() 245 { size_t const cBound = LZ4F_compressBound(0, NULL); in basicTests() 250 /* LZ4F_compressBound() : special case : automatic flushing enabled */ in basicTests() 251 DISPLAYLEVEL(3, "LZ4F_compressBound(1 KB, autoFlush=1) = "); in basicTests() 256 cBound = LZ4F_compressBound(1 KB, &autoFlushPrefs); in basicTests() 261 /* LZ4F_compressBound() : special case : automatic flushing disabled */ in basicTests() 262 DISPLAYLEVEL(3, "LZ4F_compressBound(1 KB, autoFlush=0) = "); in basicTests() 263 { size_t const cBound = LZ4F_compressBound(1 KB, &prefs); in basicTests() 533 CHECK_V(cErr, LZ4F_compressUpdate(cctx, op, LZ4F_compressBound(testSiz in basicTests() [all...] |
/third_party/lz4/examples/ |
H A D | frameCompress.c | 70 assert(outCapacity >= LZ4F_compressBound(inChunkSize, &kPrefs)); in compress_file_internal() 161 size_t const outbufCapacity = LZ4F_compressBound(IN_CHUNK_SIZE, &kPrefs); /* large enough for any input <= IN_CHUNK_SIZE */ in compress_file()
|
/third_party/lz4/lib/ |
H A D | lz4frame.h | 289 /*! LZ4F_compressBound() : 292 * When srcSize==0, LZ4F_compressBound() provides an upper bound for LZ4F_flush() and LZ4F_compressEnd() instead. 296 * one must check if there is enough remaining capacity before each invocation, using LZ4F_compressBound(). 304 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr); 309 * This value is provided by LZ4F_compressBound(). 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).
|
H A D | lz4file.c | 216 (*lz4fWrite)->dstBufMaxSize = LZ4F_compressBound((*lz4fWrite)->maxWriteSize, prefsPtr); in LZ4F_writeOpen()
|
H A D | lz4frame.c | 369 * When srcSize==0, LZ4F_compressBound() provides an upper bound for LZ4F_flush() and LZ4F_compressEnd() operations. 804 /* LZ4F_compressBound() : 809 size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) in LZ4F_compressBound() function 924 * @dstCapacity MUST be >= LZ4F_compressBound(srcSize, preferencesPtr) when block compression is turned on. 1054 * @dstCapacity MUST be >= LZ4F_compressBound(srcSize, preferencesPtr). 1078 * @dstCapacity MUST be >= LZ4F_compressBound(srcSize, preferencesPtr).
|
Completed in 8 milliseconds