mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-28 11:42:22 -05:00
54 lines
1.0 KiB
Java
54 lines
1.0 KiB
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) {}
|
|
|
|
public void setMemory(long address, long bytes, byte value) {}
|
|
|
|
public void copyMemory(long srcAddress, long destAddress, long bytes) {}
|
|
}
|