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

/libcore/luni/src/test/java/libcore/java/util/zip/
H A DInflaterTest.java31 assertRoundTrip("dictionary".getBytes("UTF-8"));
34 private static void assertRoundTrip(byte[] dictionary) throws Exception { argument
39 // Compress the bytes, using the passed-in dictionary (or no dictionary).
40 byte[] deflatedBytes = deflate(expectedBytes, dictionary);
49 // If we used a dictionary to compress, check that we're asked for that same dictionary.
50 if (dictionary != null) {
53 // 2. ...because you need a dictionary.
55 // 3. ...and that dictionary ha
103 deflate(byte[] input, byte[] dictionary) argument
[all...]
/libcore/luni/src/main/native/
H A DZipUtilities.cpp53 const Bytef* dictionary = reinterpret_cast<const Bytef*>(&dictionaryBytes[0]); local
56 err = inflateSetDictionary(&stream, dictionary, len);
58 err = deflateSetDictionary(&stream, dictionary, len);

Completed in 65 milliseconds