Clears the native memory associated with this Structure.
()
| 453 | |
| 454 | /** Clears the native memory associated with this Structure. */ |
| 455 | public void clear() { |
| 456 | ensureAllocated(); |
| 457 | // ensure the memory is released and the values are written again |
| 458 | nativeStrings.clear(); |
| 459 | memory.clear(size()); |
| 460 | } |
| 461 | |
| 462 | /** Return a {@link Pointer} object to this structure. Note that if you |
| 463 | * use the structure's pointer as a function argument, you are responsible |
no test coverage detected