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

16
LINES

< > BotCompany Repo | #1033076 // CompressionTest_RepeatBytes

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

Libraryless. Click here for Pure Java version (3996L/23K).

sclass CompressionTest_RepeatBytes {
  int maxLength = 1024;
  
  class Test {
    settable byte value;
    settable int length;
    
    byte[] makeData aka get() { ret repByte(length, value); }
  }
  
  Test makeTest aka get() {
    ret new Test()
      .value(randomByte())
      .length(random(maxLength));
  }
}

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: 110 / 201
Version history: 4 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)