Libraryless. Click here for Pure Java version (2646L/17K).
svoid test_compress30BitUint() { repeat 100000 { int i = random(0x40000000); byte[] b = compress30BitUint(i); assertEquals(i, readCompressed30BitUint(byteArrayToIF0_Byte(b))); } }
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: | 395 / 537 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |