| 26 | |
| 27 | // Load shared library via JNA |
| 28 | public interface Processor extends Library |
| 29 | { |
| 30 | Processor INSTANCE = (Processor) Native.load("serving_processor", Processor.class); |
| 31 | |
| 32 | // Define shared library function prototype |
| 33 | public Pointer initialize(String modelEntry, String modelConfig, int[] state); |
| 34 | |
| 35 | public int process(Pointer model, byte[] buffer, int size, PointerByReference outputData, int[] outputSize); |
| 36 | } |
| 37 | |
| 38 | public static void main(String[] args) { |
| 39 | Demo demo = new Demo(); |
no test coverage detected