Libraryless. Click here for Pure Java version (2646L/17K).
1 | svoid test_compress30BitUint() { |
2 | repeat 100000 { |
3 | int i = random(0x40000000); |
4 | byte[] b = compress30BitUint(i); |
5 | assertEquals(i, readCompressed30BitUint(byteArrayToIF0_Byte(b))); |
6 | } |
7 | } |
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: | #1029526 |
Snippet name: | test_compress30BitUint (OK) |
Eternal ID of this version: | #1029526/2 |
Text MD5: | 7fd5c77db139b03ce63a7d379d0937bf |
Transpilation MD5: | c18442af9bc58f36d17f7096f8f3d5ae |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-17 16:55:07 |
Source code size: | 201 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 288 |
Version history: | 1 change(s) |
Referenced in: | [show references] |