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

Method readField

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

Force a read of the given field from native memory. The Java field will be updated from the current contents of native memory. @param name field to be read @return the new field value, after updating @throws IllegalArgumentException if no field exists with the given name

(String name)

Source from the content-addressed store, hash-verified

637 * @throws IllegalArgumentException if no field exists with the given name
638 */
639 public Object readField(String name) {
640 ensureAllocated();
641 StructField f = fields().get(name);
642 if (f == null)
643 throw new IllegalArgumentException("No such field: " + name);
644 return readField(f);
645 }
646
647 /** Obtain the value currently in the Java field. Does not read from
648 * native memory.

Callers 1

readMethod · 0.95

Calls 14

ensureAllocatedMethod · 0.95
fieldsMethod · 0.95
nativeTypeMethod · 0.95
getFieldValueMethod · 0.95
getStringMethod · 0.95
fromNativeMethod · 0.95
setFieldValueMethod · 0.95
isArrayMethod · 0.80
putMethod · 0.80
getPointerMethod · 0.65
getValueMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected