System.util.zlib.Deflate.copy_block C# (CSharp) Method

copy_block() private method

private copy_block ( int buf, int len, bool header ) : void
buf int
len int
header bool
return void
        internal void copy_block(int buf,         // the input data
            int len,         // its length
            bool header   // true if block header must be written
            ){
            //int index=0;
            bi_windup();      // align on byte boundary
            last_eob_len = 8; // enough lookahead for inflate

            if (header) {
                put_short((short)len);   
                put_short((short)~len);
            }

            //  while(len--!=0) {
            //    put_byte(window[buf+index]);
            //    index++;
            //  }
            put_byte(window, buf, len);
        }