Libraryless. Click here for Pure Java version (2655L/17K).
static int readCompressed30BitUint_IByteMemory64(IByteMemory64 mem, long ptr) { int i = ubyteToInt(mem.getByte(ptr)); if (i < 0x40) ret i; int j = ubyteToInt(mem.getByte(++ptr)); if (i < 0x80) ret ((i & 0x3F) << 8) | j; int k = ubyteToInt(mem.getByte(++ptr)); if (i < 0xC0) ret ((i & 0x3F) << 16) | (j << 8) | k; ret ((i & 0x3F) << 24) | (j << 16) | (k << 8) | ubyteToInt(mem.getByte(++ptr)); }
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: | 165 / 265 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029534 - compressed30BitUint_lengthFromFirstByte |