Lines Matching defs:srcSizePtr
730 int* const srcSizePtr,
738 const BYTE* const iend = ip + *srcSizePtr;
753 if ((U32)*srcSizePtr > (U32)LZ4_MAX_INPUT_SIZE) return 0; /* Unsupported input size, too large (or negative) */
754 if ((tableType == byU16) && (*srcSizePtr>=LZ4_64Klimit)) return 0; /* Size too large (not within 64K limit) */
755 if (*srcSizePtr<LZ4_minLength) goto _last_literals; /* Input too small, no compression (all literals) */
758 *srcSizePtr = 0;
893 *srcSizePtr = (int) (((const char*)ip)-src);
898 static int LZ4_compress_destSize_extState (void* state, const char* src, char* dst, int* srcSizePtr, int targetDstSize)
902 if (targetDstSize >= LZ4_compressBound(*srcSizePtr)) /* compression success is guaranteed */
904 return LZ4_compress_fast_extState(state, src, dst, *srcSizePtr, targetDstSize, 1);
908 if (*srcSizePtr < LZ4_64Klimit)
909 return LZ4_compress_destSize_generic(state, src, dst, srcSizePtr, targetDstSize, byU16);
911 return LZ4_compress_destSize_generic(state, src, dst, srcSizePtr, targetDstSize, LZ4_64bits() ? byU32 : byPtr);
916 int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize)
925 int result = LZ4_compress_destSize_extState(ctx, src, dst, srcSizePtr, targetDstSize);