Home
last modified time | relevance | path

Searched refs:maxCompressedSize (Results 1 - 2 of 2) sorted by relevance

/third_party/lz4/lib/
H A Dlz4.h623 * which size is >= (maxCompressedSize)
624 * with maxCompressedSize == LZ4_COMPRESSBOUND(srcSize) for guaranteed compression success.
625 * LZ4_COMPRESS_INPLACE_BUFFER_SIZE() depends on both maxCompressedSize and LZ4_DISTANCE_MAX,
637 #define LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCompressedSize) ((maxCompressedSize) + LZ4_COMPRESS_INPLACE_MARGIN) /**< maxCompressedSize is generally LZ4_COMPRESSBOUND(inputSize), but can be set to any lower value, with the risk that compression can fail (return code 0(zero)) */
/third_party/lz4/programs/
H A Dbench.c364 size_t const maxCompressedSize = (size_t)LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add some room for safety */ in BMK_benchMem() local
365 void* const compressedBuffer = malloc(maxCompressedSize); in BMK_benchMem()
413 RDG_genBuffer(compressedBuffer, maxCompressedSize, 0.10, 0.50, 1); in BMK_benchMem()
450 if (!cCompleted) memset(compressedBuffer, 0xE5, maxCompressedSize); /* warm up and erase compressed buffer */ in BMK_benchMem()

Completed in 4 milliseconds