• Home
  • Raw
  • Download

Lines Matching refs:ctxPtr

761 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock);
922 LZ4HC_CCtx_internal* const ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_loadDictHC() local
928 LZ4_resetStreamHC(LZ4_streamHCPtr, ctxPtr->compressionLevel); in LZ4_loadDictHC()
929 LZ4HC_init (ctxPtr, (const BYTE*)dictionary); in LZ4_loadDictHC()
930 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
931 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); in LZ4_loadDictHC()
941 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock) in LZ4HC_setExternalDict() argument
943 DEBUGLOG(4, "LZ4HC_setExternalDict(%p, %p)", ctxPtr, newBlock); in LZ4HC_setExternalDict()
944 if (ctxPtr->end >= ctxPtr->base + ctxPtr->dictLimit + 4) in LZ4HC_setExternalDict()
945 LZ4HC_Insert (ctxPtr, ctxPtr->end-3); /* Referencing remaining dictionary content */ in LZ4HC_setExternalDict()
948 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
949 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict()
950 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict()
951 ctxPtr->base = newBlock - ctxPtr->dictLimit; in LZ4HC_setExternalDict()
952 ctxPtr->end = newBlock; in LZ4HC_setExternalDict()
953 ctxPtr->nextToUpdate = ctxPtr->dictLimit; /* match referencing will resume from there */ in LZ4HC_setExternalDict()
961 LZ4HC_CCtx_internal* const ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_compressHC_continue_generic() local
964 if (ctxPtr->base == NULL) LZ4HC_init (ctxPtr, (const BYTE*) src); in LZ4_compressHC_continue_generic()
967 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 GB) { in LZ4_compressHC_continue_generic()
968 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
970 LZ4_loadDictHC(LZ4_streamHCPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
974 if ((const BYTE*)src != ctxPtr->end) LZ4HC_setExternalDict(ctxPtr, (const BYTE*)src); in LZ4_compressHC_continue_generic()
978 const BYTE* const dictBegin = ctxPtr->dictBase + ctxPtr->lowLimit; in LZ4_compressHC_continue_generic()
979 const BYTE* const dictEnd = ctxPtr->dictBase + ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
982 ctxPtr->lowLimit = (U32)(sourceEnd - ctxPtr->dictBase); in LZ4_compressHC_continue_generic()
983 if (ctxPtr->dictLimit - ctxPtr->lowLimit < 4) ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
987 …return LZ4HC_compress_generic (ctxPtr, src, dst, srcSizePtr, dstCapacity, ctxPtr->compressionLevel… in LZ4_compressHC_continue_generic()