Libraryless. Click here for Pure Java version (51L/1K).
static long longFromBytes_littleEndian_partial(byte[] a, int i) { ret (ubyteToLong(i+7 >= a.length ? 0 : a[i+7]) << 56 | (ubyteToLong(i+6 >= a.length ? 0 : a[i+6]) << 48 | (ubyteToLong(i+5 >= a.length ? 0 : a[i+5]) << 40 | (ubyteToLong(i+4 >= a.length ? 0 : a[i+4]) << 32 | (ubyteToLong(i+3 >= a.length ? 0 : a[i+3]) << 24 | (ubyteToLong(i+2 >= a.length ? 0 : a[i+2]) << 16 | (ubyteToLong(i+1 >= a.length ? 0 : a[i+1]) << 8 | ubyteToLong(a[i]); }
Began life as a copy of #1031658
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036042 |
| Snippet name: | longFromBytes_littleEndian_partial |
| Eternal ID of this version: | #1036042/1 |
| Text MD5: | 56cff1833ef09932a67f95a5789dc522 |
| Transpilation MD5: | 12a13052841797b7957c5a399bfd89b8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-09-03 01:28:46 |
| Source code size: | 485 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 343 / 432 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |