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

18
LINES

< > BotCompany Repo | #1008032 // loadBinarySnippet

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4334L/29K).

static File loadBinarySnippet(S snippetID) {
  ifndef NoResourceLoader
  IResourceLoader rl = vm_getResourceLoader();
  if (rl != null)
    ret rl.loadLibrary(snippetID);
  endifndef
  
  ret loadBinarySnippet_noResourceLoader(snippetID);
}
  
static File loadBinarySnippet_noResourceLoader(S snippetID) ctex {
  long id = parseSnippetID(snippetID);
  if (isImageServerSnippet(id)) ret loadImageAsFile(snippetID);
  File f = DiskSnippetCache_getLibrary(id);
  if (fileSize(f) == 0)
    f = loadDataSnippetToFile_noResourceLoader(snippetID);
  return f;
}

Author comment

Began life as a copy of #1000677

download  show line numbers  debug dex  old transpilations   

Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008032
Snippet name: loadBinarySnippet
Eternal ID of this version: #1008032/8
Text MD5: 667012ee11510829380a7d40cde8b089
Transpilation MD5: 31a35c717e1a1f9006d92fa9b79c0739
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-14 16:02:29
Source code size: 571 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 659 / 1222
Version history: 7 change(s)
Referenced in: [show references]