Lines Matching refs:lhSize
450 size_t lhSize, litSize, litCSize;
460 lhSize = 3;
466 lhSize = 4;
472 lhSize = 5;
479 if (litCSize + lhSize > srcSize)
484 ? (singleStream ? HUF_decompress1X_usingDTable(dctx->litBuffer, litSize, istart + lhSize, litCSize, dctx->HUFptr)
485 : HUF_decompress4X_usingDTable(dctx->litBuffer, litSize, istart + lhSize, litCSize, dctx->HUFptr))
487 ? HUF_decompress1X2_DCtx_wksp(dctx->entropy.hufTable, dctx->litBuffer, litSize, istart + lhSize, litCSize,
489 : HUF_decompress4X_hufOnly_wksp(dctx->entropy.hufTable, dctx->litBuffer, litSize, istart + lhSize, litCSize,
499 return litCSize + lhSize;
503 size_t litSize, lhSize;
509 lhSize = 1;
513 lhSize = 2;
517 lhSize = 3;
522 if (lhSize + litSize + WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildcopy */
523 if (litSize + lhSize > srcSize)
525 memcpy(dctx->litBuffer, istart + lhSize, litSize);
529 return lhSize + litSize;
532 dctx->litPtr = istart + lhSize;
534 return lhSize + litSize;
539 size_t litSize, lhSize;
544 lhSize = 1;
548 lhSize = 2;
552 lhSize = 3;
555 return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need lhSize+1 = 4 */
560 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH);
563 return lhSize + 1;
2176 size_t lhSize;
2224 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0;
2283 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0;
2315 size_t const hSize = ZSTD_getFrameParams(&zds->fParams, zds->headerBuffer, zds->lhSize);
2319 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */
2321 memcpy(zds->headerBuffer + zds->lhSize, ip, iend - ip);
2322 zds->lhSize += iend - ip;
2324 return (MAX(ZSTD_frameHeaderSize_min, hSize) - zds->lhSize) +
2327 memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad);
2328 zds->lhSize = hSize;