Libraryless. Click here for Pure Java version (2655L/17K).
1 | static int readCompressed30BitUint_IByteMemory64(IByteMemory64 mem, long ptr) {
|
2 | int i = ubyteToInt(mem.getByte(ptr)); |
3 | if (i < 0x40) ret i; |
4 | int j = ubyteToInt(mem.getByte(++ptr)); |
5 | if (i < 0x80) |
6 | ret ((i & 0x3F) << 8) | j; |
7 | int k = ubyteToInt(mem.getByte(++ptr)); |
8 | if (i < 0xC0) |
9 | ret ((i & 0x3F) << 16) |
10 | | (j << 8) | k; |
11 | ret ((i & 0x3F) << 24) |
12 | | (j << 16) | (k << 8) | ubyteToInt(mem.getByte(++ptr)); |
13 | } |
Began life as a copy of #1029524
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029533 |
| Snippet name: | readCompressed30BitUint_IByteMemory64 |
| Eternal ID of this version: | #1029533/3 |
| Text MD5: | 21000a07f6f2048c4b69c2a5e33e52c4 |
| Transpilation MD5: | 9418056ce5dfba895010812dc9000544 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-17 23:32:16 |
| Source code size: | 438 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 362 / 508 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |