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

8
LINES

< > BotCompany Repo | #1035691 // testStringToAndFromHuffmanBytes

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

Libraryless. Click here for Pure Java version (15279L/90K).

1  
static byte[] testStringToAndFromHuffmanBytes(S src) {
2  
  byte[] comp = stringToHuffmanBytes(src);
3  
  //printHexDump(comp);
4  
  print(lUtf8(src) + " => " + l(comp));
5  
  S src2 = stringFromHuffmanBytes(comp);
6  
  assertEquals(src, src2);
7  
  ret comp;
8  
}

Author comment

Began life as a copy of #1035688

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035691
Snippet name: testStringToAndFromHuffmanBytes
Eternal ID of this version: #1035691/1
Text MD5: 886a8f57948b0f93be47146e6032c1bc
Transpilation MD5: 1011d11371d46d5932cba10462fa7edd
Author: stefan
Category: javax / compression
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-06 22:08:57
Source code size: 250 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 188
Referenced in: [show references]