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