Lines Matching refs:ctxPtr

629 	LZ4HC_CCtx_internal *ctxPtr = &LZ4_streamHCPtr->internal_donotuse;  in LZ4_loadDictHC()  local
635 LZ4HC_init(ctxPtr, (const BYTE *)dictionary); in LZ4_loadDictHC()
637 LZ4HC_Insert(ctxPtr, (const BYTE *)dictionary + (dictSize - 3)); in LZ4_loadDictHC()
638 ctxPtr->end = (const BYTE *)dictionary + dictSize; in LZ4_loadDictHC()
646 LZ4HC_CCtx_internal *ctxPtr, in LZ4HC_setExternalDict() argument
649 if (ctxPtr->end >= ctxPtr->base + 4) { in LZ4HC_setExternalDict()
651 LZ4HC_Insert(ctxPtr, ctxPtr->end - 3); in LZ4HC_setExternalDict()
658 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
659 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict()
660 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict()
661 ctxPtr->base = newBlock - ctxPtr->dictLimit; in LZ4HC_setExternalDict()
662 ctxPtr->end = newBlock; in LZ4HC_setExternalDict()
664 ctxPtr->nextToUpdate = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
675 LZ4HC_CCtx_internal *ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_compressHC_continue_generic() local
678 if (ctxPtr->base == NULL) in LZ4_compressHC_continue_generic()
679 LZ4HC_init(ctxPtr, (const BYTE *) source); in LZ4_compressHC_continue_generic()
682 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 * GB) { in LZ4_compressHC_continue_generic()
683 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) in LZ4_compressHC_continue_generic()
684 - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
688 (const char *)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
692 if ((const BYTE *)source != ctxPtr->end) in LZ4_compressHC_continue_generic()
693 LZ4HC_setExternalDict(ctxPtr, (const BYTE *)source); in LZ4_compressHC_continue_generic()
698 const BYTE * const dictBegin = ctxPtr->dictBase + ctxPtr->lowLimit; in LZ4_compressHC_continue_generic()
699 const BYTE * const dictEnd = ctxPtr->dictBase + ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
705 ctxPtr->lowLimit = (U32)(sourceEnd - ctxPtr->dictBase); in LZ4_compressHC_continue_generic()
707 if (ctxPtr->dictLimit - ctxPtr->lowLimit < 4) in LZ4_compressHC_continue_generic()
708 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
712 return LZ4HC_compress_generic(ctxPtr, source, dest, in LZ4_compressHC_continue_generic()
713 inputSize, maxOutputSize, ctxPtr->compressionLevel, limit); in LZ4_compressHC_continue_generic()