MCPcopy
hub / github.com/google/brotli / attachDictionary

Method attachDictionary

java/org/brotli/wrapper/enc/Encoder.java:136–142  ·  view source on GitHub ↗
(PreparedDictionary dictionary)

Source from the content-addressed store, hash-verified

134 }
135
136 public void attachDictionary(PreparedDictionary dictionary) throws IOException {
137 if (!encoder.attachDictionary(dictionary.getData())) {
138 fail("failed to attach dictionary");
139 }
140 // Reference to native prepared dictionary wrapper should be held till the end of encoding.
141 dictionaries.add(dictionary);
142 }
143
144 /**
145 * @param force repeat pushing until all output is consumed

Callers

nothing calls this directly

Calls 3

failMethod · 0.95
addMethod · 0.80
getDataMethod · 0.65

Tested by

no test coverage detected