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

Method getStructAlignment

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

@return current alignment setting for this structure

()

Source from the content-addressed store, hash-verified

1534 * @return current alignment setting for this structure
1535 */
1536 protected int getStructAlignment() {
1537 if (size == CALCULATE_SIZE) {
1538 // calculate size, but don't allocate memory
1539 calculateSize(true);
1540 }
1541 return structAlignment;
1542 }
1543
1544 /** Overridable in subclasses.
1545 * Calculate the appropriate alignment for a field of a given type within this struct.

Callers 1

getNativeAlignmentMethod · 0.80

Calls 1

calculateSizeMethod · 0.95

Tested by

no test coverage detected