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

Method writeField

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

Write the given field to native memory. The current value in the Java field will be translated into native memory. @param name which field to synch @throws IllegalArgumentException if no field exists with the given name

(String name)

Source from the content-addressed store, hash-verified

819 * @throws IllegalArgumentException if no field exists with the given name
820 */
821 public void writeField(String name) {
822 ensureAllocated();
823 StructField f = fields().get(name);
824 if (f == null)
825 throw new IllegalArgumentException("No such field: " + name);
826 writeField(f);
827 }
828
829 /** Write the given field value to the field and native memory. The
830 * given value will be written both to the Java field and the

Callers 1

writeMethod · 0.95

Calls 13

ensureAllocatedMethod · 0.95
fieldsMethod · 0.95
setFieldValueMethod · 0.95
getFieldValueMethod · 0.95
toNativeMethod · 0.95
nativeTypeMethod · 0.95
getPointerMethod · 0.95
putMethod · 0.80
setValueMethod · 0.65
getMethod · 0.45
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected