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

8
LINES

< > BotCompany Repo | #1008727 // ipToInt (returns a long)

JavaX fragment (include)

static long ipToInt(S ip) {
  new Matches m;
  assertTrue(jmatch("*.*.*.*", ip, m));
  ret parseLong($4)
    | parseLong($3) << 8
    | parseLong($2) << 16
    | parseLong($1) << 24;
}

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: #1008727
Snippet name: ipToInt (returns a long)
Eternal ID of this version: #1008727/3
Text MD5: dfecf31cedf4cfdcb977a9f4217f157d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-31 01:49:19
Source code size: 191 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 569 / 581
Version history: 2 change(s)
Referenced in: [show references]