Lines Matching refs:ctxPtr
630 LZ4HC_CCtx_internal *ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_loadDictHC() local
636 LZ4HC_init(ctxPtr, (const BYTE *)dictionary); in LZ4_loadDictHC()
638 LZ4HC_Insert(ctxPtr, (const BYTE *)dictionary + (dictSize - 3)); in LZ4_loadDictHC()
639 ctxPtr->end = (const BYTE *)dictionary + dictSize; in LZ4_loadDictHC()
647 LZ4HC_CCtx_internal *ctxPtr, in LZ4HC_setExternalDict() argument
650 if (ctxPtr->end >= ctxPtr->base + 4) { in LZ4HC_setExternalDict()
652 LZ4HC_Insert(ctxPtr, ctxPtr->end - 3); in LZ4HC_setExternalDict()
659 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
660 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict()
661 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict()
662 ctxPtr->base = newBlock - ctxPtr->dictLimit; in LZ4HC_setExternalDict()
663 ctxPtr->end = newBlock; in LZ4HC_setExternalDict()
665 ctxPtr->nextToUpdate = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
676 LZ4HC_CCtx_internal *ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_compressHC_continue_generic() local
679 if (ctxPtr->base == NULL) in LZ4_compressHC_continue_generic()
680 LZ4HC_init(ctxPtr, (const BYTE *) source); in LZ4_compressHC_continue_generic()
683 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 * GB) { in LZ4_compressHC_continue_generic()
684 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) in LZ4_compressHC_continue_generic()
685 - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
689 (const char *)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
693 if ((const BYTE *)source != ctxPtr->end) in LZ4_compressHC_continue_generic()
694 LZ4HC_setExternalDict(ctxPtr, (const BYTE *)source); in LZ4_compressHC_continue_generic()
699 const BYTE * const dictBegin = ctxPtr->dictBase + ctxPtr->lowLimit; in LZ4_compressHC_continue_generic()
700 const BYTE * const dictEnd = ctxPtr->dictBase + ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
706 ctxPtr->lowLimit = (U32)(sourceEnd - ctxPtr->dictBase); in LZ4_compressHC_continue_generic()
708 if (ctxPtr->dictLimit - ctxPtr->lowLimit < 4) in LZ4_compressHC_continue_generic()
709 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
713 return LZ4HC_compress_generic(ctxPtr, source, dest, in LZ4_compressHC_continue_generic()
714 inputSize, maxOutputSize, ctxPtr->compressionLevel, limit); in LZ4_compressHC_continue_generic()