This method of the DllLib class propagates the fields from the native memory block to the Java object or from the Java object to the native memory block. The contents of some complex field types, such as arrays, are cached in garbage-collected memory, so writes or reads of these fields do not access the native memory block. By calling this method, the contents of the native memory block and the Java object are synchronized.
public static native void propagateStructFields(Object structObj, boolean fromNative);
structObj | The object declared using @dll.struct. |
fromNative | The direction to propagate the fields. |
This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.