Lines Matching refs:dictSize

908                                          const void *dictStart, size_t dictSize);
1133 cctx->dictSize = 0; in LZ4_prepareTable()
1165 const U32 dictSize = in LZ4_compress_generic_validated() local
1166 dictDirective == usingDictCtx ? dictCtx->dictSize : cctx->dictSize; in LZ4_compress_generic_validated()
1170 U32 const prefixIdxLimit = startIndex - dictSize; /* used when dictDirective == dictSmall */ in LZ4_compress_generic_validated()
1171 const BYTE *const dictEnd = dictionary ? dictionary + dictSize : dictionary; in LZ4_compress_generic_validated()
1179 …e = !dictionary ? NULL : (dictDirective == usingDictCtx) ? dictionary + dictSize - dictCtx->curren… in LZ4_compress_generic_validated()
1180 … : dictionary + dictSize - startIndex; in LZ4_compress_generic_validated()
1204 lowLimit = (const BYTE *)source - (dictDirective == withPrefix64k ? dictSize : 0); in LZ4_compress_generic_validated()
1212 cctx->dictSize = (U32)inputSize; in LZ4_compress_generic_validated()
1216 cctx->dictSize += (U32)inputSize; in LZ4_compress_generic_validated()
1905 int LZ4_loadDict(LZ4_stream_t *LZ4_dict, const char *dictionary, int dictSize) in LZ4_loadDict() argument
1910 const BYTE *const dictEnd = p + dictSize; in LZ4_loadDict()
1913 DEBUGLOG(4, "LZ4_loadDict (%i bytes from %p into %p)", dictSize, dictionary, LZ4_dict); in LZ4_loadDict()
1929 if (dictSize < (int)HASH_UNIT) in LZ4_loadDict()
1938 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict()
1947 return (int)dict->dictSize; in LZ4_loadDict()
1956 dictCtx != NULL ? dictCtx->dictSize : 0); in LZ4_attach_dictionary()
1972 if (dictCtx->dictSize == 0) in LZ4_attach_dictionary()
1987 const BYTE *dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize; in LZ4_renormDictT()
1998 if (LZ4_dict->dictSize > 64 KB) in LZ4_renormDictT()
1999 LZ4_dict->dictSize = 64 KB; in LZ4_renormDictT()
2000 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize; in LZ4_renormDictT()
2011 const BYTE *dictEnd = streamPtr->dictionary + streamPtr->dictSize; in LZ4_compress_fast_continue()
2022 if ((streamPtr->dictSize - 1 < 4 - 1) /* intentional underflow */ in LZ4_compress_fast_continue()
2025 …mpress_fast_continue: dictSize(%u) at addr:%p is too small", streamPtr->dictSize, streamPtr->dicti… in LZ4_compress_fast_continue()
2026 streamPtr->dictSize = 0; in LZ4_compress_fast_continue()
2036 streamPtr->dictSize = (U32)(dictEnd - sourceEnd); in LZ4_compress_fast_continue()
2037 if (streamPtr->dictSize > 64 KB) in LZ4_compress_fast_continue()
2038 streamPtr->dictSize = 64 KB; in LZ4_compress_fast_continue()
2039 if (streamPtr->dictSize < 4) in LZ4_compress_fast_continue()
2040 streamPtr->dictSize = 0; in LZ4_compress_fast_continue()
2041 streamPtr->dictionary = dictEnd - streamPtr->dictSize; in LZ4_compress_fast_continue()
2048 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_fast_continue()
2081 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_fast_continue()
2091 streamPtr->dictSize = (U32)inputSize; in LZ4_compress_fast_continue()
2104 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_forceExtDict()
2114 streamPtr->dictSize = (U32)srcSize; in LZ4_compress_forceExtDict()
2126 int LZ4_saveDict(LZ4_stream_t *LZ4_dict, char *safeBuffer, int dictSize) in LZ4_saveDict() argument
2129 const BYTE *const previousDictEnd = dict->dictionary + dict->dictSize; in LZ4_saveDict()
2131 if ((U32)dictSize > 64 KB) in LZ4_saveDict()
2133 dictSize = 64 KB; in LZ4_saveDict()
2135 if ((U32)dictSize > dict->dictSize) in LZ4_saveDict()
2137 dictSize = (int)dict->dictSize; in LZ4_saveDict()
2141 assert(dictSize == 0); in LZ4_saveDict()
2142 if (dictSize > 0) in LZ4_saveDict()
2143 memmove(safeBuffer, previousDictEnd - dictSize, dictSize); in LZ4_saveDict()
2146 dict->dictSize = (U32)dictSize; in LZ4_saveDict()
2148 return dictSize; in LZ4_saveDict()
2228 const size_t dictSize /* note : = 0 if noDict */ in LZ4_decompress_generic() argument
2244 const BYTE *const dictEnd = (dictStart == NULL) ? NULL : dictStart + dictSize; in LZ4_decompress_generic()
2247 const int checkOffset = ((safeDecode) && (dictSize < (int)(64 KB))); in LZ4_decompress_generic()
2381 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2426 if (checkOffset && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2669 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2863 const void *dictStart, size_t dictSize) in LZ4_decompress_safe_forceExtDict() argument
2867 (BYTE *)dest, (const BYTE *)dictStart, dictSize); in LZ4_decompress_safe_forceExtDict()
2872 const void *dictStart, size_t dictSize) in LZ4_decompress_fast_extDict() argument
2876 (BYTE *)dest, (const BYTE *)dictStart, dictSize); in LZ4_decompress_fast_extDict()
2885 size_t prefixSize, const void *dictStart, size_t dictSize) in LZ4_decompress_safe_doubleDict() argument
2889 (BYTE *)dest - prefixSize, (const BYTE *)dictStart, dictSize); in LZ4_decompress_safe_doubleDict()
2894 size_t prefixSize, const void *dictStart, size_t dictSize) in LZ4_decompress_fast_doubleDict() argument
2898 (BYTE *)dest - prefixSize, (const BYTE *)dictStart, dictSize); in LZ4_decompress_fast_doubleDict()
2926 int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize) in LZ4_setStreamDecode() argument
2929 lz4sd->prefixSize = (size_t)dictSize; in LZ4_setStreamDecode()
2930 lz4sd->prefixEnd = (const BYTE *)dictionary + dictSize; in LZ4_setStreamDecode()
3063 …ar *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize) in LZ4_decompress_safe_usingDict() argument
3065 if (dictSize == 0) in LZ4_decompress_safe_usingDict()
3067 if (dictStart + dictSize == dest) in LZ4_decompress_safe_usingDict()
3069 if (dictSize >= 64 KB - 1) in LZ4_decompress_safe_usingDict()
3073 assert(dictSize >= 0); in LZ4_decompress_safe_usingDict()
3074 …LZ4_decompress_safe_withSmallPrefix(source, dest, compressedSize, maxOutputSize, (size_t)dictSize); in LZ4_decompress_safe_usingDict()
3076 assert(dictSize >= 0); in LZ4_decompress_safe_usingDict()
3077 …mpress_safe_forceExtDict(source, dest, compressedSize, maxOutputSize, dictStart, (size_t)dictSize); in LZ4_decompress_safe_usingDict()
3080 …st_usingDict(const char *source, char *dest, int originalSize, const char *dictStart, int dictSize) in LZ4_decompress_fast_usingDict() argument
3082 if (dictSize == 0 || dictStart + dictSize == dest) in LZ4_decompress_fast_usingDict()
3084 assert(dictSize >= 0); in LZ4_decompress_fast_usingDict()
3085 return LZ4_decompress_fast_extDict(source, dest, originalSize, dictStart, (size_t)dictSize); in LZ4_decompress_fast_usingDict()