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

6
LINES

< > BotCompany Repo | #1004991 // intFromBytes - big-endian

JavaX fragment (include)

static int intFromBytes(byte[] a, int i) {
  ret ubyteToInt(a[i]) << 24
    | ubyteToInt(a[i+1]) << 16
    | ubyteToInt(a[i+2]) << 8
    | ubyteToInt(a[i+3]);
}

Author comment

Began life as a copy of #1002912

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004991
Snippet name: intFromBytes - big-endian
Eternal ID of this version: #1004991/2
Text MD5: a8b695033051b9fa3acf1014a0352b6d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-02 21:07:14
Source code size: 165 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 510 / 526
Version history: 1 change(s)
Referenced in: [show references]