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 |
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 |
setHandle(FileDescriptor descriptor,
int 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 int getHandle(FileDescriptor descriptor)
public static void setHandle(FileDescriptor descriptor, int handle)
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()