MCPcopy Create free account
hub / github.com/M66B/FairEmail / decompress

Method decompress

app/src/main/java/eu/faircode/email/CloudSync.java:824–830  ·  view source on GitHub ↗
(byte[] compressed)

Source from the content-addressed store, hash-verified

822 }
823
824 public static byte[] decompress(byte[] compressed) throws IOException {
825 try (ByteArrayInputStream is = new ByteArrayInputStream(compressed)) {
826 try (GZIPInputStream gis = new GZIPInputStream(is)) {
827 return Helper.readBytes(gis);
828 }
829 }
830 }
831
832 private static List<JSONArray> partition(JSONArray jarray) throws JSONException {
833 Log.i("Cloud batch size=" + jarray.length() + "/" + BATCH_SIZE);

Callers 1

transformMethod · 0.95

Calls 1

readBytesMethod · 0.95

Tested by

no test coverage detected