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)

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

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: 188 / 225
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033116 - intFromByteList_littleEndian_partial
#1036042 - longFromBytes_littleEndian_partial