Class JNASupport


  • public final class JNASupport
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clearStructureMemory​(com.sun.jna.Structure... structures)
      Clear the memory of the given Structure instances.
      static java.util.List<java.lang.String> structureFieldOrder​(java.lang.Class<? extends com.sun.jna.Structure> structure)
      Deduce the JNA Structure subclass field order from the class itself via reflection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • structureFieldOrder

        public static java.util.List<java.lang.String> structureFieldOrder​(java.lang.Class<? extends com.sun.jna.Structure> structure)
        Deduce the JNA Structure subclass 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 given Structure instances.
        Parameters:
        structures - the structures to have their memory cleared
        See Also:
        Structure.clear()