Searched refs:dictionary (Results 1 - 4 of 4) sorted by relevance

/glassfish-3.1.2/installer/src/cpp/share/launcher/zlib-1.1.4/
H A Dinflate.c15 DICT4, /* four dictionary check bytes to go */
16 DICT3, /* three dictionary check bytes to go */
17 DICT2, /* two dictionary check bytes to go */
18 DICT1, /* one dictionary check byte to go */
218 z->msg = (char*)"need dictionary";
279 int ZEXPORT inflateSetDictionary(z, dictionary, dictLength)
281 const Bytef *dictionary;
289 if (adler32(1L, dictionary, dictLength) != z->adler) return Z_DATA_ERROR;
295 dictionary += dictLength - length;
297 inflate_set_dictionary(z->state->blocks, dictionary, lengt
[all...]
H A Dzlib.h360 If a preset dictionary is needed at this point (see inflateSetDictionary
362 dictionary chosen by the compressor and returns Z_NEED_DICT; otherwise
372 preset dictionary is needed at this point, Z_DATA_ERROR if the input data was
445 const Bytef *dictionary,
448 Initializes the compression dictionary from the given byte sequence
452 dictionary (see inflateSetDictionary).
454 The dictionary should consist of strings (byte sequences) that are likely
456 used strings preferably put towards the end of the dictionary. Using a
457 dictionary is most useful when the data to be compressed is short and can be
459 with the default empty dictionary
[all...]
H A Dexample.c35 const char dictionary[] = "hello"; variable
36 uLong dictId; /* Adler32 value of the dictionary */
418 * Test deflate() with preset dictionary
435 (const Bytef*)dictionary, sizeof(dictionary));
455 * Test inflate() with a preset dictionary
484 fprintf(stderr, "unexpected dictionary");
487 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
488 sizeof(dictionary));
500 printf("inflate with dictionary
[all...]
H A Ddeflate.c16 * dictionary are very simple and thus fast, and deletions are avoided
159 * Insert string str in the dictionary and set match_head to the previous head
290 int ZEXPORT deflateSetDictionary (strm, dictionary, dictLength)
292 const Bytef *dictionary;
300 if (strm == Z_NULL || strm->state == Z_NULL || dictionary == Z_NULL ||
304 strm->adler = adler32(strm->adler, dictionary, dictLength);
310 dictionary += dictLength - length; /* use the tail of the dictionary */
313 zmemcpy(s->window, dictionary, length);
473 /* Save the adler32 of the preset dictionary
[all...]

Completed in 23 milliseconds