Set whether native memory accesses are protected from invalid accesses. This should only be set true when testing or debugging, and should not be considered reliable or robust for applications where JNA native calls are occurring on multiple threads. Protected mode will be automatically set if the
(boolean enable)
| 396 | * Java application. |
| 397 | */ |
| 398 | public static synchronized native void setProtected(boolean enable); |
| 399 | |
| 400 | /** Returns whether protection is enabled. Check the result of this method |
| 401 | * after calling {@link #setProtected setProtected(true)} to determine |