Searched refs:dictionary (Results 1 – 2 of 2) sorted by relevance
34 private static void assertRoundTrip(byte[] dictionary) throws Exception { in assertRoundTrip() argument40 byte[] deflatedBytes = deflate(expectedBytes, dictionary); in assertRoundTrip()50 if (dictionary != null) { in assertRoundTrip()56 assertEquals(adler32(dictionary), inflater.getAdler()); in assertRoundTrip()57 inflater.setDictionary(dictionary); in assertRoundTrip()103 private static byte[] deflate(byte[] input, byte[] dictionary) { in deflate() argument105 if (dictionary != null) { in deflate()106 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()