Basic Scalar Types

The basic scalar types are mapped as follows:

Java type DLL
int signed 32-bit integer
byte signed 8-bit integer
short signed 16-bit integer
long signed 64-bit integer
float 32-bit float
double 64-bit double

Note that there is no direct representation of unsigned integer types in Java. Since Java has no unsigned types, use the Java type which is the same size as the integer type you want. For example, the Java int type can be used without loss of representation for the common DWORD (unsigned 32-bit) type.