Skip to content

Instantly share code, notes, and snippets.

@conorgriffin
Created December 18, 2019 15:33
Show Gist options
  • Select an option

  • Save conorgriffin/04225d911260dba77cd0a8dd87a84dfe to your computer and use it in GitHub Desktop.

Select an option

Save conorgriffin/04225d911260dba77cd0a8dd87a84dfe to your computer and use it in GitHub Desktop.
java.util.zip.Deflater native methods
private static native void initIDs();
private native static long init(int level, int strategy, boolean nowrap);
private native static void setDictionary(long addr, byte[] b, int off, int len);
private native int deflateBytes(long addr, byte[] b, int off, int len,
int flush);
private native static int getAdler(long addr);
private native static void reset(long addr);
private native static void end(long addr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment