ComponentAce.Compression.Libs.ZLib.Deflate.copy_block C# (CSharp) Method

copy_block() private method

Copy a stored block, storing first the length and its one's complement if requested.
private copy_block ( int buf, int len, bool header ) : void
buf int
len int
header bool
return void
        private void copy_block(int buf, int len, bool header)
        {

            bi_windup(); // align on byte boundary
            last_eob_len = 8; // enough lookahead for inflate

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

            put_byte(window, buf, len);
        }