示例#1
0
 public override void Init(int type, int level)
 {
     if (type == DEFLATER)
     {
         stream.DeflateInit(level);
         this.type = DEFLATER;
     }
     else
     {
         if (type == INFLATER)
         {
             stream.InflateInit();
             inflated_buf = new byte[BUF_SIZE];
             this.type    = INFLATER;
         }
     }
 }