Package com.kenai.jffi
Class Struct
- java.lang.Object
-
- com.kenai.jffi.Type
-
- com.kenai.jffi.Aggregate
-
- com.kenai.jffi.Struct
-
public final class Struct extends Aggregate
Describes the layout of a C struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStruct.StructReference-
Nested classes/interfaces inherited from class com.kenai.jffi.Type
Type.Builtin, Type.TypeInfo
-
-
Field Summary
Fields Modifier and Type Field Description private Type[]fieldsprivate static java.util.Map<java.util.List<Type>,Struct.StructReference>structCacheprivate static java.lang.ref.ReferenceQueue<Struct>structReferenceQueue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()static StructnewStruct(Type... fields)-
Methods inherited from class com.kenai.jffi.Aggregate
dispose, finalize, getTypeInfo
-
Methods inherited from class com.kenai.jffi.Type
alignment, handle, nativeHandles, nativeHandles, size, type
-
-
-
-
Field Detail
-
structCache
private static final java.util.Map<java.util.List<Type>,Struct.StructReference> structCache
-
structReferenceQueue
private static final java.lang.ref.ReferenceQueue<Struct> structReferenceQueue
-
fields
private final Type[] fields
-
-
Constructor Detail
-
Struct
private Struct(Foreign foreign, Type... fields)
Creates a new C struct layout description.- Parameters:
fields- The fields contained in the struct.
-
Struct
@Deprecated public Struct(Type... fields)
Deprecated.Creates a new C struct layout description.- Parameters:
fields- The fields contained in the struct.
-
-