Annotation Type AfterCallbackCall


@Retention(RUNTIME)
@Target(METHOD)
public @interface AfterCallbackCall
Methods annotated with AfterCallbackCall will be called for the parameters of a Callback method that were marshaled from pointers after the method has completed. This can be used to deallocate memory or update the native object or Java object that was the result of the marshaling. AfterCallbackCall methods are optional.

For Callback parameters that are marshaled from native pointers to Java objects the method must have a signature matching:

public static void afterNativeToJava(long before, T after, long flags)