Skip to content

Instantly share code, notes, and snippets.

@mebjas
Created November 16, 2022 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mebjas/277a44602a216b7d052e792b91dd8264 to your computer and use it in GitHub Desktop.
Save mebjas/277a44602a216b7d052e792b91dd8264 to your computer and use it in GitHub Desktop.
Java part of JNI library for reading image in JNI
/** Wrapper class for loading image in native layer. */
public final class NativeImageLoader {
static {
System.loadLibrary("image-loader-jni");
}
/** Reads the image represented by {@code fd} in native layer.
*
* <p>For apparently no reason!
*
* @return Some information about the file.
*/
public static native String readFile(int fd);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment