public final class Struct extends Aggregate
Modifier and Type | Class and Description |
---|---|
private static class |
Struct.StructReference |
Type.Builtin, Type.TypeInfo
Modifier and Type | Field and Description |
---|---|
private Type[] |
fields |
private static java.util.Map<java.util.List<Type>,Struct.StructReference> |
structCache |
private static java.lang.ref.ReferenceQueue<Struct> |
structReferenceQueue |
Modifier | Constructor and Description |
---|---|
private |
Struct(Foreign foreign,
Type... fields)
Creates a new C struct layout description.
|
|
Struct(Type... fields)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static Struct |
newStruct(Type... fields) |
dispose, finalize, getTypeInfo
alignment, handle, nativeHandles, nativeHandles, size, type
private static final java.util.Map<java.util.List<Type>,Struct.StructReference> structCache
private static final java.lang.ref.ReferenceQueue<Struct> structReferenceQueue
private final Type[] fields
private Struct(Foreign foreign, Type... fields)
fields
- The fields contained in the struct.@Deprecated public Struct(Type... fields)
fields
- The fields contained in the struct.