Use this type to access meta-data about a native type, such as its size or natural alignment.
To obtain an instance of this class, use jnr. or
jnr..
Example
Type pointerType = runtime.findType(NativeType.ADDRESS);
System.out.println("The size of a pointer on this platform is " + pointerType.size());
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract int | |
| public abstract NativeType | |
| public abstract int |
| Type | back to summary |
|---|---|
| public Type() | |
| alignment | back to summary |
|---|---|
| public abstract int alignment() The native alignment of this type, in bytes
| |
| getNativeType | back to summary |
|---|---|
| public abstract NativeType getNativeType() The native type of this type
| |
| size | back to summary |
|---|---|
| public abstract int size() The size in bytes of this type.
| |