Lines Matching refs:dstSize
453 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level);
472 static int LZ4F_localLZ4_compress_limitedOutput_withState(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
475 return LZ4_compress_limitedOutput_withState(ctx, src, dst, srcSize, dstSize);
478 static int LZ4F_localLZ4_compress_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
481 return LZ4_compress_limitedOutput_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstSize);
484 static int LZ4F_localLZ4_compressHC_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
487 return LZ4_compressHC_limitedOutput_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize);
856 static void LZ4F_updateDict(LZ4F_dctx_internal_t* dctxPtr, const BYTE* dstPtr, size_t dstSize, const BYTE* dstPtr0, unsigned withinTmp)
863 dctxPtr->dictSize += dstSize;
867 if (dstPtr - dstPtr0 + dstSize >= 64 KB) /* dstBuffer large enough to become dictionary */
870 dctxPtr->dictSize = dstPtr - dstPtr0 + dstSize;
877 dctxPtr->dictSize += dstSize;
887 dctxPtr->dictSize = savedDictSize + dctxPtr->tmpOutStart + dstSize;
901 dctxPtr->dictSize = preserveSize + dctxPtr->tmpOutStart + dstSize;
908 if (dctxPtr->dictSize + dstSize > dctxPtr->maxBufferSize) /* tmp buffer not large enough */
910 size_t preserveSize = 64 KB - dstSize; /* note : dstSize < 64 KB */
914 memcpy(dctxPtr->dict + dctxPtr->dictSize, dstPtr, dstSize);
915 dctxPtr->dictSize += dstSize;
921 size_t preserveSize = 64 KB - dstSize; /* note : dstSize < 64 KB */
924 memcpy(dctxPtr->tmpOutBuffer + preserveSize, dstPtr, dstSize);
926 dctxPtr->dictSize = preserveSize + dstSize;