mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-30 20:52:17 -05:00
50 lines
884 B
Java
50 lines
884 B
Java
package jdk.internal.misc;
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
public class Unsafe {
|
|
public byte getByte(long address) {
|
|
return 42;
|
|
}
|
|
|
|
public short getShort(long address) {
|
|
return 42;
|
|
}
|
|
|
|
public int getInt(long address) {
|
|
return 42;
|
|
}
|
|
|
|
public long getLong(long address) {
|
|
return 42;
|
|
}
|
|
|
|
public long getLong(Object o, long offset) {
|
|
return 42;
|
|
}
|
|
|
|
public void putByte(long address, byte x) {}
|
|
|
|
public void putShort(long address, short x) {}
|
|
|
|
public void putInt(long address, int x) {}
|
|
|
|
public void putLong(long address, long x) {}
|
|
|
|
public void putObject(Object o, long offset, Object x) {}
|
|
|
|
public long objectFieldOffset(Field f) {
|
|
return 42;
|
|
}
|
|
|
|
public long allocateMemory(long bytes) {
|
|
return 42;
|
|
}
|
|
|
|
public long reallocateMemory(long address, long bytes) {
|
|
return 42;
|
|
}
|
|
|
|
public void freeMemory(long address) {}
|
|
}
|