Libraryless. Click here for Pure Java version (3996L/23K).
1 | sclass CompressionTest_RepeatBytes { |
2 | int maxLength = 1024; |
3 | |
4 | class Test { |
5 | settable byte value; |
6 | settable int length; |
7 | |
8 | byte[] makeData aka get() { ret repByte(length, value); } |
9 | } |
10 | |
11 | Test makeTest aka get() { |
12 | ret new Test() |
13 | .value(randomByte()) |
14 | .length(random(maxLength)); |
15 | } |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033076 |
Snippet name: | CompressionTest_RepeatBytes |
Eternal ID of this version: | #1033076/5 |
Text MD5: | 75362b150a1298eee1f91b64fc4e825f |
Transpilation MD5: | d4aa1814f2897d82fef293949e01d5e6 |
Author: | stefan |
Category: | javax / compression tests |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-14 03:36:34 |
Source code size: | 331 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 289 |
Version history: | 4 change(s) |
Referenced in: | [show references] |