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

Method fieldOffset

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

Returns the calculated offset of the given field. @param name field to examine @return return offset of the given field

(String name)

Source from the content-addressed store, hash-verified

622 * @return return offset of the given field
623 */
624 protected int fieldOffset(String name) {
625 ensureAllocated();
626 StructField f = fields().get(name);
627 if (f == null) {
628 throw new IllegalArgumentException("No such field: " + name);
629 }
630 return f.offset;
631 }
632
633 /** Force a read of the given field from native memory. The Java field
634 * will be updated from the current contents of native memory.

Callers 11

readMethod · 0.80
readMethod · 0.80
getStrMethod · 0.80
getWinStationNameMethod · 0.80
getDomainMethod · 0.80
getUserNameMethod · 0.80
ACCESS_ACEStructureMethod · 0.80
writeMethod · 0.80
readMethod · 0.80
readMethod · 0.80
CheckFieldAlignmentMethod · 0.80

Calls 3

ensureAllocatedMethod · 0.95
fieldsMethod · 0.95
getMethod · 0.45

Tested by 1

CheckFieldAlignmentMethod · 0.64