internal 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)
unchecked {
put_short ((short)len);
put_short ((short)~ len);
}
// while(len--!=0) {
// put_byte(window[buf+index]);
// index++;
// }
put_byte (window, buf, len);
}