Lines Matching refs:dictionary

41  * in which the dictionary variables address the actual output
44 struct dictionary {
55 * How full dictionary is. This is used to detect corrupt input that
64 * End of the dictionary buffer. In multi-call mode, this is
65 * the same as the dictionary size. In single-call mode, this
71 * Size of the dictionary as specified in Block Header. This is used
78 * Maximum allowed dictionary size in multi-call mode.
84 * Amount of memory currently allocated for the dictionary.
241 * True if dictionary reset is needed. This is false before
264 struct dictionary dict;
283 * Reset the dictionary state. When in single-call mode, set up the beginning
284 * of the dictionary to point to the actual output buffer.
286 static void dict_reset(struct dictionary *dict, struct xz_buf *b)
299 /* Set dictionary write limit */
300 static void dict_limit(struct dictionary *dict, size_t out_max)
308 /* Return true if at least one byte can be written into the dictionary. */
309 static inline bool dict_has_space(const struct dictionary *dict)
315 * Get a byte from the dictionary at the given distance. The distance is
316 * assumed to valid, or as a special case, zero when the dictionary is
320 static inline uint32_t dict_get(const struct dictionary *dict, uint32_t dist)
331 * Put one byte into the dictionary. It is assumed that there is space for it.
333 static inline void dict_put(struct dictionary *dict, uint8_t byte)
346 static bool dict_repeat(struct dictionary *dict, uint32_t *len, uint32_t dist)
373 /* Copy uncompressed data as is from input to dictionary and output buffers. */
374 static void dict_uncompressed(struct dictionary *dict, struct xz_buf *b,
423 * Flush pending data from dictionary to b->out. It is assumed that there is
425 * before decoding data into the dictionary.
427 static uint32_t dict_flush(struct dictionary *dict, struct xz_buf *b)
744 * If the dictionary was reached during the previous call, try to
745 * finish the possibly pending repeat in the dictionary.
782 * here, because LZMA state may be reset without resetting the dictionary.
963 * 0x02 Uncompressed chunk (no dictionary reset)
969 * by LZMA compressed chunk (no dictionary
973 * dictionary reset)
974 * 0x80 LZMA chunk (no dictionary or state reset)
980 * A new LZMA2 stream must begin with a dictionary
1079 * Set dictionary limit to indicate how much we want
1081 * dictionary. Flush the new data from dictionary to
1083 * In case the dictionary got full but we didn't fill
1151 /* This limits dictionary size to 3 GiB to keep parsing simpler. */