MCPcopy Index your code
hub / github.com/processing/processing / gzipEncode

Method gzipEncode

app/src/processing/app/Util.java:662–668  ·  view source on GitHub ↗
(byte[] what)

Source from the content-addressed store, hash-verified

660
661
662 static public byte[] gzipEncode(byte[] what) throws IOException {
663 ByteArrayOutputStream baos = new ByteArrayOutputStream();
664 GZIPOutputStream output = new GZIPOutputStream(baos);
665 PApplet.saveStream(output, new ByteArrayInputStream(what));
666 output.close();
667 return baos.toByteArray();
668 }
669
670
671 static public final boolean containsNonASCII(String what) {

Callers 1

downloadMethod · 0.95

Calls 2

saveStreamMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected