@return current alignment setting for this structure
()
| 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. |
no test coverage detected