Java bindings (#506)
[platform/upstream/dldt.git] / inference-engine / ie_bridges / java / org / intel / openvino / LockedMemory.java
1 package org.intel.openvino;
2
3 public class LockedMemory extends IEWrapper {
4
5     protected LockedMemory(long addr) {
6         super(addr);
7     }
8
9     public void get(float[] res) {
10         asFloat(nativeObj, res);
11     }
12
13     public void get(byte[] res) {
14         asByte(nativeObj, res);
15     }
16
17     /*----------------------------------- native methods -----------------------------------*/
18     private static native void asByte(long addr, byte[] res);
19
20     private static native void asFloat(long addr, float[] res);
21
22     @Override
23     protected native void delete(long nativeObj);
24 }