Libraryless. Click here for Pure Java version (7301L/43K).
sclass JE_RepByte extends JEInstantCompressor { scaffolded public IJavaExpr compress(LByte data) { bool sc = scaffoldingEnabled(this); if (empty(data)) null; byte b = first(data); int n = l(data); for (int i = 1; i < n; i++) if ((byte) data.get(i) != b) { if (sc) scaffoldCalled(this, "diff at " + i + "/" + n); null; } ret functionCall repByte(n, b); } }
Began life as a copy of #1033093
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033095 |
Snippet name: | JE_RepByte |
Eternal ID of this version: | #1033095/12 |
Text MD5: | f2a1c4f9a204554f9a074dea34b42cce |
Transpilation MD5: | 6ee673384b8c5719de899d1b4aeee623 |
Author: | stefan |
Category: | javax / recognition by compression |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 04:07:57 |
Source code size: | 424 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 356 |
Version history: | 11 change(s) |
Referenced in: | #1033096 - IJEInstantCompressor - JavaX-eval based interface for compressors taking only one step #1033140 - JE_CompressEachElementIndividually - works on a list #1033207 - JE_RepElement #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |