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; } } }