This method of the DllLib class preloads the native library and performs a type analysis on an @dll.import method to ensure that the types are compatible with DLL calling. If this method is called multiple times on the same method (or on a method that does not link to a DLL), the call is safely ignored.
public static native void prelink(Method method);
method | The method to prelink. |
This work is normally performed on the first call to the @dll.import method. The prelink method can be used to force the type analysis to be done before the first call to the @dll.import method. This can help with performance tuning, debugging, or both.