Lines Matching refs:ctxPtr
820 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock);
1030 LZ4HC_CCtx_internal* const ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_loadDictHC() local
1038 { int const cLevel = ctxPtr->compressionLevel; in LZ4_loadDictHC()
1042 LZ4HC_init_internal (ctxPtr, (const BYTE*)dictionary); in LZ4_loadDictHC()
1043 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
1044 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); in LZ4_loadDictHC()
1054 static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock) in LZ4HC_setExternalDict() argument
1056 DEBUGLOG(4, "LZ4HC_setExternalDict(%p, %p)", ctxPtr, newBlock); in LZ4HC_setExternalDict()
1057 if (ctxPtr->end >= ctxPtr->base + ctxPtr->dictLimit + 4) in LZ4HC_setExternalDict()
1058 LZ4HC_Insert (ctxPtr, ctxPtr->end-3); /* Referencing remaining dictionary content */ in LZ4HC_setExternalDict()
1061 ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4HC_setExternalDict()
1062 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict()
1063 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict()
1064 ctxPtr->base = newBlock - ctxPtr->dictLimit; in LZ4HC_setExternalDict()
1065 ctxPtr->end = newBlock; in LZ4HC_setExternalDict()
1066 ctxPtr->nextToUpdate = ctxPtr->dictLimit; /* match referencing will resume from there */ in LZ4HC_setExternalDict()
1069 ctxPtr->dictCtx = NULL; in LZ4HC_setExternalDict()
1077 LZ4HC_CCtx_internal* const ctxPtr = &LZ4_streamHCPtr->internal_donotuse; in LZ4_compressHC_continue_generic() local
1080 assert(ctxPtr != NULL); in LZ4_compressHC_continue_generic()
1082 if (ctxPtr->base == NULL) LZ4HC_init_internal (ctxPtr, (const BYTE*) src); in LZ4_compressHC_continue_generic()
1085 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 GB) { in LZ4_compressHC_continue_generic()
1086 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
1088 LZ4_loadDictHC(LZ4_streamHCPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
1092 if ((const BYTE*)src != ctxPtr->end) in LZ4_compressHC_continue_generic()
1093 LZ4HC_setExternalDict(ctxPtr, (const BYTE*)src); in LZ4_compressHC_continue_generic()
1097 const BYTE* const dictBegin = ctxPtr->dictBase + ctxPtr->lowLimit; in LZ4_compressHC_continue_generic()
1098 const BYTE* const dictEnd = ctxPtr->dictBase + ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
1101 ctxPtr->lowLimit = (U32)(sourceEnd - ctxPtr->dictBase); in LZ4_compressHC_continue_generic()
1102 if (ctxPtr->dictLimit - ctxPtr->lowLimit < 4) ctxPtr->lowLimit = ctxPtr->dictLimit; in LZ4_compressHC_continue_generic()
1106 …return LZ4HC_compress_generic (ctxPtr, src, dst, srcSizePtr, dstCapacity, ctxPtr->compressionLevel… in LZ4_compressHC_continue_generic()