2using System.Diagnostics;
18#if FIRST_PASS == false
20 static SystemAccessor systemAccessor;
21 static PropertiesAccessor propertiesAccessor;
23 static SystemAccessor SystemAccessor =>
JVM.
Internal.BaseAccessors.Get(
ref systemAccessor);
25 static PropertiesAccessor PropertiesAccessor =>
JVM.
Internal.BaseAccessors.Get(
ref propertiesAccessor);
29 const long january_1st_1970 = 62135596800000L;
43 public static void setIn0(
object @in)
46 throw new NotImplementedException();
48 SystemAccessor.SetIn(@in);
58 throw new NotImplementedException();
60 SystemAccessor.SetOut(@out);
70 throw new NotImplementedException();
72 SystemAccessor.SetErr(err);
82 return DateTime.UtcNow.Ticks / 10000L - january_1st_1970;
91 const long NANOS_PER_SEC = 1000000000;
93 var time = (double)Stopwatch.GetTimestamp();
94 var freq = (double)Stopwatch.Frequency;
95 return (
long)(time / freq * NANOS_PER_SEC);
109 public static void arraycopy(
object src,
int srcPos,
object dest,
int destPos,
int length)
124 return RuntimeHelpers.GetHashCode(x);
135 throw new NotImplementedException();
138 throw new global::java.lang.NullPointerException();
141 return libname +
".dll";
143 return "lib" + libname +
".dylib";
145 return "lib" + libname +
".so";
static void setErr0(object err)
Implements the native method 'setErr0'.
static void setOut0(object @out)
Implements the native method 'setOut0'.
static string mapLibraryName(string libname)
Implements the native method 'mapLibraryName'.
static long currentTimeMillis()
Implements the native method 'currentTimeMillis'.
static void setIn0(object @in)
Implements the native method 'setIn0'.
static int identityHashCode(object x)
Implements the native method 'identityHashCode'.
static long nanoTime()
Implements the native method 'nanoTime'.
static void registerNatives()
Implements the native method 'registerNatives'.
static void arraycopy(object src, int srcPos, object dest, int destPos, int length)
Implements the native method 'arraycopy'.
static void arraycopy(object src, int srcStart, object dest, int destStart, int len)
Main state of the running JVM.
Maintains various information about the current runtime environment.
static bool IsOSX
Returns true if the current platform is Mac OS X.
static bool IsWindows
Returns true if the current platform is Windows.