public abstract class Platform extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Platform.CPU
The common names of cpu architectures.
|
static class |
Platform.OS
The common names of operating systems.
|
Modifier and Type | Method and Description |
---|---|
long |
addressMask()
Gets the 32/64bit mask of a C address/pointer on the native platform.
|
int |
addressSize()
Gets the size of a C address/pointer on the native platform.
|
Platform.CPU |
getCPU()
Gets the current processor architecture the JVM is running on.
|
int |
getJavaMajorVersion()
Gets the version of the Java Virtual Machine (JVM) jffi is running on.
|
String |
getLibraryNamePattern()
Gets the regex string used to match platform-specific libraries
|
String |
getName()
Gets the name of this Platform.
|
Platform.OS |
getOS()
Gets the current Operating System.
|
static Platform |
getPlatform()
Gets the current Platform
|
boolean |
isSupported()
Checks if the current platform is supported by JFFI.
|
abstract int |
longSize()
Gets the size of a C 'long' on the native platform.
|
String |
mapLibraryName(String libName)
Maps from a generic library name (e.g.
|
public static final Platform getPlatform()
public final Platform.OS getOS()
public final Platform.CPU getCPU()
public final int getJavaMajorVersion()
public abstract int longSize()
public final int addressSize()
public final long addressMask()
public String getName()
public String mapLibraryName(String libName)
libName
- The library name to mappublic String getLibraryNamePattern()
public boolean isSupported()
Copyright © 2016. All Rights Reserved.