Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1029534 // compressed30BitUint_lengthFromFirstByte

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (33L/1K).

1  
static int compressed30BitUint_lengthFromFirstByte(byte b) {
2  
  ret (ubyteToInt(b) >> 6)+1;
3  
}

Author comment

Began life as a copy of #1029533

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: #1029534
Snippet name: compressed30BitUint_lengthFromFirstByte
Eternal ID of this version: #1029534/1
Text MD5: 1a8129ba9226bc3f2571e3292ac433b8
Transpilation MD5: 7817e904684afc25a40d62cbfeec4638
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:33:57
Source code size: 94 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 281
Referenced in: [show references]