Top Description Fields Constructors Methods
com.jogamp.gluegen.cgram.types

public Class StructLayout

extends Object
Class Inheritance
Imports
com.jogamp.common.os.MachineDataInfo, com.jogamp.gluegen.GlueGen

Encapsulates algorithm for laying out data structures. Note that this ends up embedding code in various places via SizeThunks. If the 32-bit and 64-bit ports on a given platform differ fundamentally in their handling of struct layout then this code will need to be updated and, most likely, two versions of the SizeThunks maintained in various places.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
protected
StructLayout(final int baseOffset)

Method Summary

Modifier and TypeMethod and Description
public static StructLayout
create(final int baseOffset)

public void
public static void
layout(final int baseOffset, final CompoundType t)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseOffsetback to summary
private final int baseOffset

Constructor Detail

StructLayoutback to summary
protected StructLayout(final int baseOffset)

Method Detail

createback to summary
public static StructLayout create(final int baseOffset)
layoutback to summary
public void layout(final CompoundType t)
layoutback to summary
public static void layout(final int baseOffset, final CompoundType t)