| 80 | } |
| 81 | |
| 82 | public static class SmallTestStructure extends Structure { |
| 83 | public static final List<String> FIELDS = createFieldsOrder("value"); |
| 84 | public double value; |
| 85 | public static int allocations = 0; |
| 86 | @Override |
| 87 | protected void allocateMemory(int size) { |
| 88 | super.allocateMemory(size); |
| 89 | ++allocations; |
| 90 | } |
| 91 | public SmallTestStructure() { } |
| 92 | public SmallTestStructure(Pointer p) { super(p); read(); } |
| 93 | @Override |
| 94 | protected List<String> getFieldOrder() { |
| 95 | return FIELDS; |
| 96 | } |
| 97 | } |
| 98 | public static class TestStructure extends Structure { |
| 99 | public static class ByValue extends TestStructure implements Structure.ByValue { } |
| 100 | public static interface TestCallback extends Callback { |
nothing calls this directly
no test coverage detected
searching dependent graphs…