Libraryless. Click here for Pure Java version (51L/1K).
1 | static long longFromBytes_littleEndian_partial(byte[] a, int i) { |
2 | ret (ubyteToLong(i+7 >= a.length ? 0 : a[i+7]) << 56 |
3 | | (ubyteToLong(i+6 >= a.length ? 0 : a[i+6]) << 48 |
4 | | (ubyteToLong(i+5 >= a.length ? 0 : a[i+5]) << 40 |
5 | | (ubyteToLong(i+4 >= a.length ? 0 : a[i+4]) << 32 |
6 | | (ubyteToLong(i+3 >= a.length ? 0 : a[i+3]) << 24 |
7 | | (ubyteToLong(i+2 >= a.length ? 0 : a[i+2]) << 16 |
8 | | (ubyteToLong(i+1 >= a.length ? 0 : a[i+1]) << 8 |
9 | | ubyteToLong(a[i]); |
10 | } |
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: | 126 / 168 |
Referenced in: | [show references] |