public class WindowsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NANOSECS_PER_MILLISEC |
static long |
NANOSECS_PER_SEC |
| Constructor and Description |
|---|
WindowsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getFD(FileDescriptor descriptor) |
static long |
getHandle(FileDescriptor descriptor) |
static long |
getNanoCounter()
Retrieve a nanosecond counter for elapsed time measurement.
|
static String |
lastErrorString(String defaultMsg)
Return the error string for the last error, or a default message.
|
static void |
setFD(FileDescriptor descriptor,
int fd) |
static void |
setHandle(FileDescriptor descriptor,
long handle) |
static boolean |
writeBytes(int handle,
org.graalvm.nativeimage.c.type.CCharPointer bytes,
org.graalvm.word.UnsignedWord length)
Low-level output of bytes already in native memory.
|
public static final long NANOSECS_PER_SEC
public static final int NANOSECS_PER_MILLISEC
public static long getHandle(FileDescriptor descriptor)
public static void setHandle(FileDescriptor descriptor, long handle)
public static int getFD(FileDescriptor descriptor)
public static void setFD(FileDescriptor descriptor, int fd)
public static String lastErrorString(String defaultMsg)
public static boolean writeBytes(int handle,
org.graalvm.nativeimage.c.type.CCharPointer bytes,
org.graalvm.word.UnsignedWord length)
public static long getNanoCounter()