Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1004620 // quickRunDex - load .dex, call _calc() and return result

JavaX fragment (include)

static S quickRunDex(byte[] dex) {
  S s = loadDex(dex, false);
  new Matches m;
  if (!match("OK, injection id: *", s, m)) fail(s);
  S injectionID = m.unq(0);
  O paa = call(getJavaX(), "findInjection", injectionID);
  O c = get(paa, "mainClass");
  call(getJavaX(), "setVars", c, null);
  try {
    ret ok(callOpt(c, "_calc"));
  } finally {
    call(getJavaX(), "removeInjection", paa);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004620
Snippet name: quickRunDex - load .dex, call _calc() and return result
Eternal ID of this version: #1004620/1
Text MD5: e976014fa11217801b4bcadfb54f9666
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 01:54:54
Source code size: 409 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 607 / 606
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)