Lines Matching defs:dictSize
920 int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize)
923 DEBUGLOG(4, "LZ4_loadDictHC(%p, %p, %d)", LZ4_streamHCPtr, dictionary, dictSize);
924 if (dictSize > 64 KB) {
925 dictionary += dictSize - 64 KB;
926 dictSize = 64 KB;
930 ctxPtr->end = (const BYTE*)dictionary + dictSize;
931 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3);
932 return dictSize;
968 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit;
969 if (dictSize > 64 KB) dictSize = 64 KB;
970 LZ4_loadDictHC(LZ4_streamHCPtr, (const char*)(ctxPtr->end) - dictSize, (int)dictSize);
1007 int LZ4_saveDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, char* safeBuffer, int dictSize)
1011 DEBUGLOG(4, "LZ4_saveDictHC(%p, %p, %d)", LZ4_streamHCPtr, safeBuffer, dictSize);
1012 if (dictSize > 64 KB) dictSize = 64 KB;
1013 if (dictSize < 4) dictSize = 0;
1014 if (dictSize > prefixSize) dictSize = prefixSize;
1015 memmove(safeBuffer, streamPtr->end - dictSize, dictSize);
1017 streamPtr->end = (const BYTE*)safeBuffer + dictSize;
1019 streamPtr->dictLimit = endIndex - dictSize;
1020 streamPtr->lowLimit = endIndex - dictSize;
1023 return dictSize;