Searched refs:dictionary (Results 1 – 2 of 2) sorted by relevance
40 private static void assertRoundTrip(byte[] dictionary) throws Exception { in assertRoundTrip() argument46 byte[] deflatedBytes = deflate(expectedBytes, dictionary); in assertRoundTrip()56 if (dictionary != null) { in assertRoundTrip()62 assertEquals(adler32(dictionary), inflater.getAdler()); in assertRoundTrip()63 inflater.setDictionary(dictionary); in assertRoundTrip()110 private static byte[] deflate(byte[] input, byte[] dictionary) { in deflate() argument114 if (dictionary != null) { in deflate()115 deflater.setDictionary(dictionary); in deflate()
53 const Bytef* dictionary = reinterpret_cast<const Bytef*>(&dictionaryBytes[0]); in setDictionary() local56 err = inflateSetDictionary(&stream, dictionary, len); in setDictionary()58 err = deflateSetDictionary(&stream, dictionary, len); in setDictionary()