(s, buf, len, header)
| 22879 | * one's complement if requested. |
| 22880 | */ |
| 22881 | function copy_block(s, buf, len, header) |
| 22882 | //DeflateState *s; |
| 22883 | //charf *buf; /* the input data */ |
| 22884 | //unsigned len; /* its length */ |
| 22885 | //int header; /* true if block header must be written */ |
| 22886 | { |
| 22887 | bi_windup(s); /* align on byte boundary */ |
| 22888 | |
| 22889 | if (header) { |
| 22890 | put_short(s, len); |
| 22891 | put_short(s, ~len); |
| 22892 | } |
| 22893 | // while (len--) { |
| 22894 | // put_byte(s, *buf++); |
| 22895 | // } |
| 22896 | utils.arraySet(s.pending_buf, s.window, buf, len, s.pending); |
| 22897 | s.pending += len; |
| 22898 | } |
| 22899 | |
| 22900 | /* =========================================================================== |
| 22901 | * Compares to subtrees, using the tree depth as tie breaker when |
no test coverage detected