Lines Matching refs:src

347 #    define LZ4_memcpy(dst, src, size) __builtin_memcpy(dst, src, size)
349 # define LZ4_memcpy(dst, src, size) memcpy(dst, src, size)
1306 * takes care of src == (NULL, 0)
1310 const char* const src,
1325 if (srcSize == 0) { /* src == NULL supported if srcSize == 0 */
1337 assert(src != NULL);
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)
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);
1394 const tableType_t tableType = ((sizeof(void*)==4) && ((uptrval)src > LZ4_DISTANCE_MAX)) ? byPtr : byU32;
1396 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDictIssue, acceleration);
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);
1408 const tableType_t tableType = ((sizeof(void*)==4) && ((uptrval)src > LZ4_DISTANCE_MAX)) ? byPtr : byU32;
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);
1444 static int LZ4_compress_destSize_extState (LZ4_stream_t* state, const char* src, char* dst, int* srcSizePtr, int targetDstSize)
1450 return LZ4_compress_fast_extState(state, src, dst, *srcSizePtr, targetDstSize, 1);
1453 return LZ4_compress_generic(&state->internal_donotuse, src, dst, *srcSizePtr, srcSizePtr, targetDstSize, fillOutput, byU16, noDict, noDictIssue, 1);
1455 tableType_t const addrMode = ((sizeof(void*)==4) && ((uptrval)src > LZ4_DISTANCE_MAX)) ? byPtr : byU32;
1456 return LZ4_compress_generic(&state->internal_donotuse, src, dst, *srcSizePtr, srcSizePtr, targetDstSize, fillOutput, addrMode, noDict, noDictIssue, 1);
1461 int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize)
1471 int result = LZ4_compress_destSize_extState(ctx, src, dst, srcSizePtr, targetDstSize);
1938 const char* const src,
1950 if ((src == NULL) || (outputSize < 0)) { return -1; }
1952 { const BYTE* ip = (const BYTE*) src;
2337 return (int) (-(((const char*)ip)-src))-1;
2353 int LZ4_decompress_safe_partial(const char* src, char* dst, int compressedSize, int targetOutputSize, int dstCapacity)
2356 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity,
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);