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


< > BotCompany Repo | #1029172 - lineCompedSingleFromCompressor

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

Uses 11335K of libraries. Click here for Pure Java version (8245L/53K).

static LineCompedSingle<Char> lineCompedSingleFromCompressor(LineCompCompressor compressor) {
  new L<Char> literals;
  new L<IntPair> pairs;
  for (LineCompCompressor.Chunk c : compressor.chunks)
    if (c cast LineCompCompressor.CPair)
      pairs.add(IntPair(c.i1, c.i2));
      literals.add(charFromHex(((LineCompCompressor.CPrim) c).s));
  ret new LineCompedSingle<Char>(literals, pairs, firstValue(compressor.finalEncodings));

Author comment

Began life as a copy of #1028766

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029172
Snippet name: lineCompedSingleFromCompressor
Eternal ID of this version: #1029172/1
Text MD5: 900d9b450b82e566cb7b85cabf7e6964
Transpilation MD5: e2d439b41940f2bd812f054167bbee9c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-23 19:06:14
Source code size: 452 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 30 / 52
Referenced in: [show references]

Formerly at &