public static int getFunctionIndex(LLVMAddress addr) { int functionIndex = UNSAFE.getInt(LLVMMemory.extractAddr(addr)); return functionIndex; }
public static void memSet(LLVMAddress target, int value, long length) { long targetAddress = LLVMMemory.extractAddr(target); memSetHandle.call(targetAddress, value, length); }
public static void putFunctionIndex(LLVMAddress address, int functionIndex) { UNSAFE.putInt(LLVMMemory.extractAddr(address), functionIndex); }