106
106
int const proposed_clevel = clevel ? clevel : select_clevel(srcBuff, srcSize);
108
108
compressFn compress = selected_clevel >= LZ4HC_CLEVEL_MIN ? LZ4_compress_HC : LZ4_compress_fast;
109
109
int const cSize = compress((const char*)srcBuff, (char*)compressedBuff, (int)srcSize, (int)compressedBuffCapacity, selected_clevel);
110
110
CONTROL_MSG(cSize == 0, "Compression error !");