View Single Post
  #2  
Old 2009-01-15, 22:47
zalas zalas is offline
 
 
Join Date: Feb 2004
Location: fushigi misuterii
Posts: 1,831
Send a message via ICQ to zalas
Default

In case you haven't realized, it's using a pretty standard implementation of LZSS and the "key" you describe is simply a set of flags (one for each bit in the byte) telling the decompressor what types of token follow, whether they be verbatim byte-copy tokens or window backwards-lookup tokens. That being said, yes you can simply create a byte-stream that's all 'verbatim-copy' tokens, but if you want to learn how to write a real compressor for it, look up LZSS.
__________________
~Yoda is waiting in the air~ | HAVEN
Reply With Quote