MCPcopy Index your code
hub / github.com/java-native-access/jna / clear

Method clear

src/com/sun/jna/Structure.java:455–460  ·  view source on GitHub ↗

Clears the native memory associated with this Structure.

()

Source from the content-addressed store, hash-verified

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

Callers 4

useMemoryMethod · 0.45
getFieldListMethod · 0.45
dataEqualsMethod · 0.45
AutoAllocatedMethod · 0.45

Calls 2

ensureAllocatedMethod · 0.95
sizeMethod · 0.95

Tested by

no test coverage detected