jvm/classes/java/misc/Memory.java

19 lines
613 B
Java

package java.misc;
public class Memory {
public static native void putU4(int address, int value);
public static native void putU2(int address, int value);
public static native void putU1(int address, int value);
public static native int getU4(int address);
public static native int getU2(int address);
public static native int getU1(int address);
public static native void putSQ1(Object object, int address);
public static native boolean isBigEndian();
// .length of the returned byte array must not be accessed
public static native byte[] wrapAddress(int address);
}