public final class LastError extends Object
限定符和类型 | 方法和说明 |
---|---|
static int |
getLastError(Runtime runtime)
Gets the value of errno from the last native call.
|
static void |
setLastError(Runtime runtime,
int error)
Sets the native errno value.
|
public static int getLastError(Runtime runtime)
runtime
- FFI runtime to get errno for.public static void setLastError(Runtime runtime, int error)
runtime
- FFI runtime to set errno for.error
- The value to set errno to.Copyright © 2021. All rights reserved.