MCPcopy Index your code
hub / github.com/java-native-access/jna / SmallTestStructure

Class SmallTestStructure

test/com/sun/jna/CallbacksTest.java:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

createFieldsOrderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…