- All Implemented Interfaces:
Serializable
,Comparable<NativeABI>
,Constable
Platforms native ABI (Application Binary Interface, CPU/Instruction set).
- Author:
- Sly Technologies Inc, repos@slytechs.com, mark
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
System property if set to true, pcap uses BSD style sockaddr structure which has the addr_len field. -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeABI
current()
Current.static boolean
is32bit()
Checks if is 32 bit.static boolean
is64bit()
Checks if is 64 bit.static boolean
isBsdAbi()
Checks if is bsd abi.static NativeABI
Returns the enum constant of this class with the specified name.static NativeABI[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYS_V
The sys v. -
WIN64
The win64. -
LINUX64
The linux64. -
MACOS64
The macos64.
-
-
Field Details
-
SYSTEM_PROPERTY_NATIVE_ABI_BSD
System property if set to true, pcap uses BSD style sockaddr structure which has the addr_len field. Otherwise the default heuristic are used to determine the sock address structure format.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
is64bit
public static boolean is64bit()Checks if is 64 bit.- Returns:
- true, if is 64 bit
-
is32bit
public static boolean is32bit()Checks if is 32 bit.- Returns:
- true, if is 32 bit
-
current
-
isBsdAbi
public static boolean isBsdAbi()Checks if is bsd abi.- Returns:
- true, if is bsd abi
-