Package jnr.ffi.provider.jffi
Class NativeRuntime.TypeDelegate
- java.lang.Object
-
- jnr.ffi.Type
-
- jnr.ffi.provider.jffi.NativeRuntime.TypeDelegate
-
- Enclosing class:
- NativeRuntime
private static final class NativeRuntime.TypeDelegate extends Type
-
-
Field Summary
Fields Modifier and Type Field Description private NativeTypenativeTypeprivate com.kenai.jffi.Typetype
-
Constructor Summary
Constructors Constructor Description TypeDelegate(com.kenai.jffi.Type type, NativeType nativeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignment()The native alignment of this type, in bytesNativeTypegetNativeType()The native type of this typeintsize()The size in bytes of this type.java.lang.StringtoString()
-
-
-
Field Detail
-
type
private final com.kenai.jffi.Type type
-
nativeType
private final NativeType nativeType
-
-
Constructor Detail
-
TypeDelegate
public TypeDelegate(com.kenai.jffi.Type type, NativeType nativeType)
-
-
Method Detail
-
alignment
public int alignment()
Description copied from class:TypeThe native alignment of this type, in bytes
-
size
public int size()
Description copied from class:TypeThe size in bytes of this type.
-
getNativeType
public NativeType getNativeType()
Description copied from class:TypeThe native type of this type- Specified by:
getNativeTypein classType- Returns:
- the native type of this type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-