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