Lines Matching refs:dictSize

601 int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize)  in LZ4_loadDictHC()  argument
604 if (dictSize > 64 KB) in LZ4_loadDictHC()
606 dictionary += dictSize - 64 KB; in LZ4_loadDictHC()
607 dictSize = 64 KB; 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()
612 return dictSize; in LZ4_loadDictHC()
642 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic() local
643 if (dictSize > 64 KB) dictSize = 64 KB; in LZ4_compressHC_continue_generic()
645 … LZ4_loadDictHC((LZ4_streamHC_t*)ctxPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic()
680 int LZ4_saveDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, char* safeBuffer, int dictSize) in LZ4_saveDictHC() argument
684 if (dictSize > 64 KB) dictSize = 64 KB; in LZ4_saveDictHC()
685 if (dictSize < 4) dictSize = 0; in LZ4_saveDictHC()
686 if (dictSize > prefixSize) dictSize = prefixSize; in LZ4_saveDictHC()
687 memcpy(safeBuffer, streamPtr->end - dictSize, dictSize); in LZ4_saveDictHC()
690 streamPtr->end = (const BYTE*)safeBuffer + dictSize; in LZ4_saveDictHC()
692 streamPtr->dictLimit = endIndex - dictSize; in LZ4_saveDictHC()
693 streamPtr->lowLimit = endIndex - dictSize; in LZ4_saveDictHC()
696 return dictSize; in LZ4_saveDictHC()
749 int dictSize = LZ4_saveDictHC((LZ4_streamHC_t*)LZ4HC_Data, (char*)(hc4->inputBuffer), 64 KB); in LZ4_slideInputBufferHC() local
750 return (char*)(hc4->inputBuffer + dictSize); in LZ4_slideInputBufferHC()