-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_class.java
More file actions
46 lines (31 loc) · 1.08 KB
/
test_class.java
File metadata and controls
46 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package core.natives;
public class test_class {
private long CPointer;
private boolean mOwnsMemory = true;
public test_class(int param1) {
CPointer = test_class (param1);
}
private native static long test_class(int param1);
public test_class(String param1) {
CPointer = test_class (param1);
}
private native static long test_class(String param1);
public void test_function(int param1){
test_function (CPointer,param1);
}
private native static void test_function(long CPointer,int param1);
public String test_function_return(){
return test_function_return (CPointer);
}
private native static String test_function_return(long CPointer);
public native static String test_function_static(int param1);
protected void finalize(){
if(mOwnsMemory){
finalize(CPointer);
}
}
private native static void finalize(long CPointer);
public void setMemown(boolean ownsMemory){
mOwnsMemory = ownsMemory;
}
}