mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-24 18:02:19 -05:00
41 lines
877 B
Java
41 lines
877 B
Java
|
/*
|
||
|
* Copyright (C) 2021 Andy Nguyen
|
||
|
*
|
||
|
* This software may be modified and distributed under the terms
|
||
|
* of the MIT license. See the LICENSE file for details.
|
||
|
*/
|
||
|
|
||
|
package com.bdjb;
|
||
|
|
||
|
import java.lang.reflect.Field;
|
||
|
|
||
|
interface UnsafeInterface {
|
||
|
public byte getByte(long address);
|
||
|
|
||
|
public short getShort(long address);
|
||
|
|
||
|
public int getInt(long address);
|
||
|
|
||
|
public long getLong(long address);
|
||
|
|
||
|
public long getLong(Object o, long offset);
|
||
|
|
||
|
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);
|
||
|
|
||
|
public long allocateMemory(long bytes);
|
||
|
|
||
|
public long reallocateMemory(long address, long bytes);
|
||
|
|
||
|
public void freeMemory(long address);
|
||
|
}
|