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

3
LINES

< > BotCompany Repo | #1033632 // littleEndianBitsToString

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

Libraryless. Click here for Pure Java version (4617L/26K).

1  
sS littleEndianBitsToString(int data, int nBits) {
2  
  ret stringFromFunction(nBits, i -> odd(data >> i) ? '1' : '0');
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033632
Snippet name: littleEndianBitsToString
Eternal ID of this version: #1033632/2
Text MD5: 6b757da7ad49e0e087193b026bf07368
Transpilation MD5: 790cf5e2d12076fa748cc5c33bec9d18
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-22 14:41:11
Source code size: 120 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 228
Version history: 1 change(s)
Referenced in: [show references]