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

Method layoutChanged

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

Call whenever a Structure setting is changed which might affect its memory layout.

()

Source from the content-addressed store, hash-verified

258 * memory layout.
259 */
260 private void layoutChanged() {
261 if (this.size != CALCULATE_SIZE) {
262 this.size = CALCULATE_SIZE;
263 if (this.memory instanceof AutoAllocated) {
264 this.memory = null;
265 }
266 // recalculate layout, since it was done once already
267 ensureAllocated();
268 }
269 }
270
271 /** Set the desired encoding to use when writing String fields to native
272 * memory.

Callers 2

initializeTypeMapperMethod · 0.95
setAlignTypeMethod · 0.95

Calls 1

ensureAllocatedMethod · 0.95

Tested by

no test coverage detected