Lines Matching refs:ctxPtr

603     LZ4HC_Data_Structure* ctxPtr = (LZ4HC_Data_Structure*) LZ4_streamHCPtr;  in LZ4_loadDictHC()  local
609 LZ4HC_init (ctxPtr, (const BYTE*)dictionary); in LZ4_loadDictHC()
610 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, (const BYTE*)dictionary +(dictSize-3)); in LZ4_loadDictHC()
611 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
618 static void LZ4HC_setExternalDict(LZ4HC_Data_Structure* ctxPtr, const BYTE* newBlock) in LZ4HC_setExternalDict() argument
620 if (ctxPtr->end >= ctxPtr->base + 4) in LZ4HC_setExternalDict()
621 LZ4HC_Insert (ctxPtr, ctxPtr->end-3); /* Referencing remaining dictionary content */ in LZ4HC_setExternalDict()
623 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
624 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict()
625 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict()
626 ctxPtr->base = newBlock - ctxPtr->dictLimit; in LZ4HC_setExternalDict()
627 ctxPtr->end = newBlock; in LZ4HC_setExternalDict()
628 ctxPtr->nextToUpdate = ctxPtr->dictLimit; /* match referencing will resume from there */ in LZ4HC_setExternalDict()
631 static int LZ4_compressHC_continue_generic (LZ4HC_Data_Structure* ctxPtr, in LZ4_compressHC_continue_generic() argument
636 if (ctxPtr->base == NULL) in LZ4_compressHC_continue_generic()
637 LZ4HC_init (ctxPtr, (const BYTE*) source); in LZ4_compressHC_continue_generic()
640 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 GB) in LZ4_compressHC_continue_generic()
642 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
645 … LZ4_loadDictHC((LZ4_streamHC_t*)ctxPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
649 if ((const BYTE*)source != ctxPtr->end) LZ4HC_setExternalDict(ctxPtr, (const BYTE*)source); in LZ4_compressHC_continue_generic()
654 const BYTE* dictBegin = ctxPtr->dictBase + ctxPtr->lowLimit; in LZ4_compressHC_continue_generic()
655 const BYTE* dictEnd = ctxPtr->dictBase + ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
659 ctxPtr->lowLimit = (U32)(sourceEnd - ctxPtr->dictBase); in LZ4_compressHC_continue_generic()
660 if (ctxPtr->dictLimit - ctxPtr->lowLimit < 4) ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
664 …return LZ4HC_compress_generic (ctxPtr, source, dest, inputSize, maxOutputSize, ctxPtr->compression… in LZ4_compressHC_continue_generic()