Lines Matching refs:srcSize

741 int LZ4_compress_forceExtDict (LZ4_stream_t* LZ4_dict, const char* source, char* dest, int srcSize);
958 DEBUGLOG(5, "LZ4_compress_generic_validated: srcSize=%i, tableType=%u", inputSize, tableType);
1312 const int srcSize,
1321 DEBUGLOG(5, "LZ4_compress_generic: srcSize=%i, dstCapacity=%i",
1322 srcSize, dstCapacity);
1324 if ((U32)srcSize > (U32)LZ4_MAX_INPUT_SIZE) { return 0; } /* Unsupported srcSize, too large (or negative) */
1325 if (srcSize == 0) { /* src == NULL supported if srcSize == 0 */
1339 return LZ4_compress_generic_validated(cctx, src, dst, srcSize,
1378 int LZ4_compress_fast_extState_fastReset(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration)
1384 if (dstCapacity >= LZ4_compressBound(srcSize)) {
1385 if (srcSize < LZ4_64Klimit) {
1387 LZ4_prepareTable(ctx, srcSize, tableType);
1389 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, dictSmall, acceleration);
1391 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDictIssue, acceleration);
1395 LZ4_prepareTable(ctx, srcSize, tableType);
1396 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDictIssue, acceleration);
1399 if (srcSize < LZ4_64Klimit) {
1401 LZ4_prepareTable(ctx, srcSize, tableType);
1403 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, noDict, dictSmall, acceleration);
1405 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, noDict, noDictIssue, acceleration);
1409 LZ4_prepareTable(ctx, srcSize, tableType);
1410 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, noDict, noDictIssue, acceleration);
1435 int LZ4_compress_default(const char* src, char* dst, int srcSize, int maxOutputSize)
1437 return LZ4_compress_fast(src, dst, srcSize, maxOutputSize, 1);
1712 int LZ4_compress_forceExtDict (LZ4_stream_t* LZ4_dict, const char* source, char* dest, int srcSize)
1717 LZ4_renormDictT(streamPtr, srcSize);
1720 result = LZ4_compress_generic(streamPtr, source, dest, srcSize, NULL, 0, notLimited, byU32, usingExtDict, dictSmall, 1);
1722 result = LZ4_compress_generic(streamPtr, source, dest, srcSize, NULL, 0, notLimited, byU32, usingExtDict, noDictIssue, 1);
1726 streamPtr->dictSize = (U32)srcSize;
1940 int srcSize,
1953 const BYTE* const iend = ip + srcSize;
1974 DEBUGLOG(5, "LZ4_decompress_generic (srcSize:%i, dstSize:%i)", srcSize, outputSize);
1981 return ((srcSize==1) && (*ip==0)) ? 0 : -1;
1983 if (unlikely(srcSize==0)) { return -1; }
2661 int LZ4_compress(const char* src, char* dest, int srcSize)
2663 return LZ4_compress_default(src, dest, srcSize, LZ4_compressBound(srcSize));
2665 int LZ4_compress_limitedOutput_withState (void* state, const char* src, char* dst, int srcSize, int dstSize)
2667 return LZ4_compress_fast_extState(state, src, dst, srcSize, dstSize, 1);
2669 int LZ4_compress_withState (void* state, const char* src, char* dst, int srcSize)
2671 return LZ4_compress_fast_extState(state, src, dst, srcSize, LZ4_compressBound(srcSize), 1);
2673 int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_stream, const char* src, char* dst, int srcSize, int dstCapacity)
2675 return LZ4_compress_fast_continue(LZ4_stream, src, dst, srcSize, dstCapacity, 1);