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

6
LINES

< > BotCompany Repo | #1031658 // intFromBytes_littleEndian_partial

JavaX fragment (include)

1  
static int intFromBytes_littleEndian_partial(byte[] a, int i) {
2  
  ret (ubyteToInt(i+3 >= a.length ? 0 : a[i+3]) << 24
3  
    | (ubyteToInt(i+2 >= a.length ? 0 : a[i+2]) << 16
4  
    | (ubyteToInt(i+1 >= a.length ? 0 : a[i+1]) << 8
5  
    | ubyteToInt(a[i]));
6  
}

Author comment

Began life as a copy of #1019810

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031658
Snippet name: intFromBytes_littleEndian_partial
Eternal ID of this version: #1031658/1
Text MD5: f7c9e08ebafcb2b8213f20c3ff35968c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-25 04:41:34
Source code size: 256 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 226
Referenced in: [show references]