| 程序包 | 说明 |
|---|---|
| keystone | |
| keystone.exceptions | |
| keystone.natives |
| 限定符和类型 | 方法和说明 |
|---|---|
static KeystoneError |
KeystoneError.fromValue(Integer value)
Converts an integer value into its corresponding enumeration value.
|
static KeystoneError |
KeystoneError.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static KeystoneError[] |
KeystoneError.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
KeystoneError |
KeystoneException.getKeystoneError()
Gets the error code of Keystone.
|
| 构造器和说明 |
|---|
AssembleFailedKeystoneException(KeystoneError keystoneError,
String assembly) |
OpenFailedKeystoneException(KeystoneError keystoneError) |
SetOptionFailedKeystoneException(KeystoneError keystoneError,
KeystoneOptionType type,
int value) |
| 限定符和类型 | 方法和说明 |
|---|---|
static KeystoneError |
DirectMappingKeystoneNative.ks_close(com.sun.jna.Pointer engine)
Close KS instance: MUST do to release the handle when it is not used anymore.
|
static KeystoneError |
DirectMappingKeystoneNative.ks_errno(com.sun.jna.Pointer engine)
Report the last error number when some API function fail.
|
static KeystoneError |
DirectMappingKeystoneNative.ks_open(KeystoneArchitecture architecture,
KeystoneMode mode,
com.sun.jna.ptr.PointerByReference engine)
Create new instance of Keystone engine.
|
static KeystoneError |
DirectMappingKeystoneNative.ks_option(com.sun.jna.Pointer engine,
KeystoneOptionType type,
int value)
Set option for Keystone engine at runtime.
|
static KeystoneError |
DirectMappingKeystoneNative.ks_option(com.sun.jna.Pointer engine,
KeystoneOptionType type,
SymbolResolverCallback callback)
Set option for Keystone engine at runtime
Native function prototype: err ks_option(ks_engine *ks, ks_opt_type type, size_t value);
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
DirectMappingKeystoneNative.ks_strerror(KeystoneError errorCode)
Return a string describing given error code.
|
Copyright © 2022. All rights reserved.