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

4
LINES

< > BotCompany Repo | #1007029 // shortFromBytes - big-endian

JavaX fragment (include)

static short shortFromBytes(byte[] a, int i) {
  ret (short) (ubyteToInt(a[i]) << 8
    | ubyteToInt(a[i+1]));
}

Author comment

Began life as a copy of #1004991

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: #1007029
Snippet name: shortFromBytes - big-endian
Eternal ID of this version: #1007029/3
Text MD5: 462e5eeab262ab41fe01f160df90ec07
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 20:15:47
Source code size: 115 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 590 / 562
Version history: 2 change(s)
Referenced in: [show references]