MCPcopy Create free account
hub / github.com/java-native-access/jna / getStructureAlignment

Method getStructureAlignment

src/com/sun/jna/Native.java:922–925  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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

Calls 2

getLibraryOptionsMethod · 0.95
getMethod · 0.45