I compressed the text "TestingTesting" and the result of hex was: 0B 49 2D 2E C9 CC 4B 0F 81 50 00. I can not determine the length and distance codes. The binary snapshot is reverse because the RFC says to read a bit from right to left (thanks to Matthew Slatter for help). Here is what has been analyzed so far:
1 BFINAL (last block) 01 BTYPE (static) 1000 0100 132-48= 84 T 1001 0101 149-48= 101 e 1010 0011 163-48= 115 s 1010 0100 164-48= 116 t 1001 1001 153-48= 105 i 1001 1110 158-48= 110 n 1001 0111 151-48= 103 g
These are the remaining bits that I cannot parse:
1000 0100 0000 1000 0101 0000 0000 0
The final 10 bits (the end of the block value is x100) is the only part I can analyze. I think that the values โโof length and distance should be 7 (binary 0111), since the length of the "Testing" is 7 letters, and after the current position it copies 7 characters, but I canโt figure out how to represent it in the remaining bits. What am I doing wrong?
source share