Lines Matching refs:dstSize
818 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level, const LZ4F_CDict* cdict);
1471 const BYTE* dstPtr, size_t dstSize, const BYTE* dstBufferStart,
1479 dctx->dictSize += dstSize;
1484 if ((size_t)(dstPtr - dstBufferStart) + dstSize >= 64 KB) { /* history in dstBuffer becomes large enough to become dictionary */
1486 dctx->dictSize = (size_t)(dstPtr - dstBufferStart) + dstSize;
1490 assert(dstSize < 64 KB); /* if dstSize >= 64 KB, dictionary would be set into dstBuffer directly */
1496 /* withinTmp expectation : content of [dstPtr,dstSize] is same as [dict+dictSize,dstSize], so we just extend it */
1498 dctx->dictSize += dstSize;
1512 dctx->dictSize = preserveSize + dctx->tmpOutStart + dstSize;
1517 if (dctx->dictSize + dstSize > dctx->maxBufferSize) { /* tmp buffer not large enough */
1518 size_t const preserveSize = 64 KB - dstSize;
1522 memcpy(dctx->tmpOutBuffer + dctx->dictSize, dstPtr, dstSize);
1523 dctx->dictSize += dstSize;
1528 { size_t preserveSize = 64 KB - dstSize;
1531 memcpy(dctx->tmpOutBuffer + preserveSize, dstPtr, dstSize);
1533 dctx->dictSize = preserveSize + dstSize;