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

6
LINES

< > BotCompany Repo | #1019810 // intFromBytes_littleEndian

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

Libraryless. Click here for Pure Java version (47L/1K).

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

Author comment

Began life as a copy of #1007031

download  show line numbers  debug dex  old transpilations   

Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019810
Snippet name: intFromBytes_littleEndian
Eternal ID of this version: #1019810/1
Text MD5: e4664b6f43c80df3a438a9b0b4947949
Transpilation MD5: 05c19b2be8d1ded677f31f0713d34868
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-26 23:33:38
Source code size: 182 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 259 / 316
Referenced in: [show references]