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 NativeType
nativeType
private com.kenai.jffi.Type
type
-
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 int
alignment()
The native alignment of this type, in bytesNativeType
getNativeType()
The native type of this typeint
size()
The size in bytes of this type.java.lang.String
toString()
-
-
-
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:Type
The native alignment of this type, in bytes
-
size
public int size()
Description copied from class:Type
The size in bytes of this type.
-
getNativeType
public NativeType getNativeType()
Description copied from class:Type
The native type of this type- Specified by:
getNativeType
in classType
- Returns:
- the native type of this type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-