1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
#pike __REAL_VERSION__ 
inherit Tools.Shoot.Test; 
 
constant name="Huffman"; 
 
string(8bit) data = Stdio.read_bytes(master()->_master_file_name); 
 
int perform() 
{ 
  string(8bit) h = Standards.HPack.huffman_encode(data); 
  string(8bit) d = Standards.HPack.huffman_decode(h); 
  return sizeof(data); 
}