Package org.sheinbergon.aac.jna.util
Class JNASupport
- java.lang.Object
-
- org.sheinbergon.aac.jna.util.JNASupport
-
public final class JNASupport extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearStructureMemory(com.sun.jna.Structure... structures)Clear the memory of the givenStructureinstances.static java.util.List<java.lang.String>structureFieldOrder(java.lang.Class<? extends com.sun.jna.Structure> structure)Deduce the JNAStructuresubclass field order from the class itself via reflection.
-
-
-
Method Detail
-
structureFieldOrder
public static java.util.List<java.lang.String> structureFieldOrder(java.lang.Class<? extends com.sun.jna.Structure> structure)
Deduce the JNAStructuresubclass field order from the class itself via reflection.- Parameters:
structure- The structure for which the field order is to be deduded- Returns:
- a list of strings, ordered according to their appearance in the class
-
clearStructureMemory
public static void clearStructureMemory(com.sun.jna.Structure... structures)
Clear the memory of the givenStructureinstances.- Parameters:
structures- the structures to have their memory cleared- See Also:
Structure.clear()
-
-