Top Description Fields Constructors Methods
jnr.ffi

public final Enum NativeType

extends Enum<NativeType>
Class Inheritance

NativeType defines the primitive types supported internally. Usually you will not use these types directly, and should instead use the standard types such as Pointer, NativeLong, or any of the normal java types such as int, short. All other types are defined in terms of these primitive types.

Field Summary

Modifier and TypeField and Description
public static final NativeType
ADDRESS

Native memory address.

public static final NativeType
DOUBLE

Double precision floating point.

public static final NativeType
FLOAT

Single precision floating point.

public static final NativeType
SCHAR

Signed char.

public static final NativeType
SINT

Signed integer.

public static final NativeType
SLONG

Signed long integer.

public static final NativeType
SLONGLONG

Signed long long integer.

public static final NativeType
SSHORT

Signed short integer.

public static final NativeType
STRUCT

Native struct type

public static final NativeType
UCHAR

Unsigned char.

public static final NativeType
UINT

Unsigned integer.

public static final NativeType
ULONG

Unsigned long integer.

public static final NativeType
ULONGLONG

Unsigned long long integer.

public static final NativeType
USHORT

Unsigned short integer.

public static final NativeType
VOID

Void type.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NativeType
public static NativeType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ADDRESSback to summary
public static final NativeType ADDRESS

Native memory address. Equivalent to a C void* or char* pointer type. Can be either 4 or 8 bytes in size, depending on the platform.

DOUBLEback to summary
public static final NativeType DOUBLE

Double precision floating point. Equivalent to a C double type. Usually 8 bytes in size.

FLOATback to summary
public static final NativeType FLOAT

Single precision floating point. Equivalent to a C float type. Usually 4 bytes in size.

SCHARback to summary
public static final NativeType SCHAR

Signed char. Equivalent to a C char or signed char type. Usually 1 byte in size.

SINTback to summary
public static final NativeType SINT

Signed integer. Equivalent to a C int or signed int type. Usually 4 bytes in size.

SLONGback to summary
public static final NativeType SLONG

Signed long integer. Equivalent to a C long or signed long type. Can be either 4 or 8 bytes in size, depending on the platform.

SLONGLONGback to summary
public static final NativeType SLONGLONG

Signed long long integer. Equivalent to a C long long or signed long long type. Usually 8 bytes in size.

SSHORTback to summary
public static final NativeType SSHORT

Signed short integer. Equivalent to a C short or signed short type. Usually 2 bytes in size.

STRUCTback to summary
public static final NativeType STRUCT

Native struct type

UCHARback to summary
public static final NativeType UCHAR

Unsigned char. Equivalent to a C unsigned char type. Usually 1 byte in size

UINTback to summary
public static final NativeType UINT

Unsigned integer. Equivalent to a C unsigned int type. Usually 4 bytes in size.

ULONGback to summary
public static final NativeType ULONG

Unsigned long integer. Equivalent to a C unsigned long type. Can be either 4 or 8 bytes in size, depending on the platform.

ULONGLONGback to summary
public static final NativeType ULONGLONG

Unsigned long long integer. Equivalent to a C unsigned long long type. Usually 8 bytes in size.

USHORTback to summary
public static final NativeType USHORT

Unsigned short integer. Equivalent to a C unsigned short type. Usually 2 bytes in size.

VOIDback to summary
public static final NativeType VOID

Void type. Only used for function return types.

Constructor Detail

NativeTypeback to summary
private NativeType()

Method Detail

valueOfback to summary
public static NativeType valueOf(String name)
valuesback to summary
public static NativeType[] values()