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

7
LINES

< > BotCompany Repo | #1009428 // guessStringSize - should be accurate for 32 bit and 64 bit with Compressed OOPS

JavaX fragment (include)

static long guessStringSize(S s) {
  ret s == null ? 0 : guessStringSize(l(s));
}

static long guessStringSize(int len) {
  ret roundUpTo(8, (is64BitVM() ? 40 : 28)+len*2);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009428
Snippet name: guessStringSize - should be accurate for 32 bit and 64 bit with Compressed OOPS
Eternal ID of this version: #1009428/9
Text MD5: b0a59b7e1f51cb74552403f23d9a3b31
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-01 03:27:33
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 480 / 511
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)