Skip navigation links
JNA API 4.2.0
com.sun.jna

Interface Library

    • Field Detail

      • OPTION_STRUCTURE_ALIGNMENT

        static final String OPTION_STRUCTURE_ALIGNMENT
        Option key for structure alignment type (Integer), which should be one of the predefined alignment types in Structure.
        See Also:
        Constant Field Values
      • OPTION_STRING_ENCODING

        static final String OPTION_STRING_ENCODING

        Option key for per-library String encoding. This affects conversions between Java unicode and native (const char*) strings (as arguments or Structure fields).

        Defaults to Native.getDefaultStringEncoding().
        See Also:
        Constant Field Values
      • OPTION_ALLOW_OBJECTS

        static final String OPTION_ALLOW_OBJECTS
        Option key for a boolean flag to allow any Java class instance as a parameter. If no type mapper is found, the object is passed as a pointer. NOTE: This is for use with raw JNI interactions via the JNIEnv data structure.
        See Also:
        Constant Field Values
      • OPTION_CALLING_CONVENTION

        static final String OPTION_CALLING_CONVENTION
        Calling convention for the entire library.
        See Also:
        Constant Field Values
      • OPTION_CLASSLOADER

        static final String OPTION_CLASSLOADER

        Class loader to use when searching for native libraries on the resource path (classpath). If not provided the current thread's context class loader is used.

        If extracted from the resource path (i.e. bundled in a jar file), the loaded library's lifespan will mirror that of the class loader, which means you can use the same library in isolated contexts without conflict.
        See Also:
        Constant Field Values
JNA API 4.2.0

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.