@param cls The native interface type @return The preferred structure alignment for the given native interface. @see com.sun.jna.Library#OPTION_STRUCTURE_ALIGNMENT
(Class<?> cls)
| 920 | * @see com.sun.jna.Library#OPTION_STRUCTURE_ALIGNMENT |
| 921 | */ |
| 922 | public static int getStructureAlignment(Class<?> cls) { |
| 923 | Integer alignment = (Integer)getLibraryOptions(cls).get(Library.OPTION_STRUCTURE_ALIGNMENT); |
| 924 | return alignment == null ? Structure.ALIGN_DEFAULT : alignment; |
| 925 | } |
| 926 | |
| 927 | /** |
| 928 | * @param s The input string |