Lines Matching defs:dictSize
601 int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize)
604 if (dictSize > 64 KB)
606 dictionary += dictSize - 64 KB;
607 dictSize = 64 KB;
610 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, (const BYTE*)dictionary +(dictSize-3));
611 ctxPtr->end = (const BYTE*)dictionary + dictSize;
612 return dictSize;
642 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit;
643 if (dictSize > 64 KB) dictSize = 64 KB;
645 LZ4_loadDictHC((LZ4_streamHC_t*)ctxPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize);
680 int LZ4_saveDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, char* safeBuffer, int dictSize)
684 if (dictSize > 64 KB) dictSize = 64 KB;
685 if (dictSize < 4) dictSize = 0;
686 if (dictSize > prefixSize) dictSize = prefixSize;
687 memcpy(safeBuffer, streamPtr->end - dictSize, dictSize);
690 streamPtr->end = (const BYTE*)safeBuffer + dictSize;
692 streamPtr->dictLimit = endIndex - dictSize;
693 streamPtr->lowLimit = endIndex - dictSize;
696 return dictSize;
749 int dictSize = LZ4_saveDictHC((LZ4_streamHC_t*)LZ4HC_Data, (char*)(hc4->inputBuffer), 64 KB);
750 return (char*)(hc4->inputBuffer + dictSize);