Lines Matching refs:streamPtr

1638     LZ4_stream_t_internal* const streamPtr = &LZ4_stream->internal_donotuse;
1639 const char* dictEnd = streamPtr->dictSize ? (const char*)streamPtr->dictionary + streamPtr->dictSize : NULL;
1641 DEBUGLOG(5, "LZ4_compress_fast_continue (inputSize=%i, dictSize=%u)", inputSize, streamPtr->dictSize);
1643 LZ4_renormDictT(streamPtr, inputSize); /* fix index overflow */
1648 if ( (streamPtr->dictSize < 4) /* tiny dictionary : not enough for a hash */
1651 && (streamPtr->dictCtx == NULL) /* usingDictCtx */
1653 DEBUGLOG(5, "LZ4_compress_fast_continue: dictSize(%u) at addr:%p is too small", streamPtr->dictSize, streamPtr->dictionary);
1655 streamPtr->dictSize = 0;
1656 streamPtr->dictionary = (const BYTE*)source;
1662 if ((sourceEnd > (const char*)streamPtr->dictionary) && (sourceEnd < dictEnd)) {
1663 streamPtr->dictSize = (U32)(dictEnd - sourceEnd);
1664 if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB;
1665 if (streamPtr->dictSize < 4) streamPtr->dictSize = 0;
1666 streamPtr->dictionary = (const BYTE*)dictEnd - streamPtr->dictSize;
1672 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset))
1673 return LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, withPrefix64k, dictSmall, acceleration);
1675 return LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, withPrefix64k, noDictIssue, acceleration);
1680 if (streamPtr->dictCtx) {
1692 LZ4_memcpy(streamPtr, streamPtr->dictCtx, sizeof(*streamPtr));
1693 result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingExtDict, noDictIssue, acceleration);
1695 result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingDictCtx, noDictIssue, acceleration);
1698 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) {
1699 result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingExtDict, dictSmall, acceleration);
1701 result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingExtDict, noDictIssue, acceleration);
1704 streamPtr->dictionary = (const BYTE*)source;
1705 streamPtr->dictSize = (U32)inputSize;
1714 LZ4_stream_t_internal* streamPtr = &LZ4_dict->internal_donotuse;
1717 LZ4_renormDictT(streamPtr, srcSize);
1719 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) {
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);
1725 streamPtr->dictionary = (const BYTE*)source;
1726 streamPtr->dictSize = (U32)srcSize;