MCPcopy Create free account
hub / github.com/java-native-access/jna / calculateSize

Method calculateSize

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

Calculate the amount of native memory required for this structure. May return #CALCULATE_SIZE if the size can not yet be determined (usually due to fields in the derived class not yet being initialized). If the force parameter is true will throw an {@link IllegalSta

(boolean force)

Source from the content-addressed store, hash-verified

1177 * encountered
1178 */
1179 protected int calculateSize(boolean force) {
1180 return calculateSize(force, false);
1181 }
1182
1183 /** Efficiently calculate the size of the given Structure subclass.
1184 * @param type Structure subclass to check

Callers 7

useMemoryMethod · 0.95
ensureAllocatedMethod · 0.95
allocateMemoryMethod · 0.95
getStructAlignmentMethod · 0.95
writeMethod · 0.80
ACCESS_ACEStructureMethod · 0.80
sizeofMethod · 0.80

Calls 5

deriveLayoutMethod · 0.95
lockMethod · 0.80
unlockMethod · 0.80
putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected