778 if (strm->next_out ==
Z_NULL ||
779 (strm->avail_in != 0 && strm->next_in ==
Z_NULL) ||
785 old_flush =
s->last_flush;
789 if (
s->pending != 0) {
791 if (strm->avail_out == 0) {
806 }
else if (strm->avail_in == 0 &&
RANK(
flush) <=
RANK(old_flush) &&
824 else if (
s->level < 6)
826 else if (
s->level == 6)
830 header |= (level_flags << 6);
837 if (
s->strstart != 0) {
846 if (
s->pending != 0) {
872 if (
s->pending != 0) {
879 (
s->gzhead->hcrc ? 2 : 0) +
880 (
s->gzhead->extra ==
Z_NULL ? 0 : 4) +
881 (
s->gzhead->name ==
Z_NULL ? 0 : 8) +
882 (
s->gzhead->comment ==
Z_NULL ? 0 : 16)
892 if (
s->gzhead->extra !=
Z_NULL) {
894 put_byte(
s, (
s->gzhead->extra_len >> 8) & 0xff);
897 strm->adler =
crc32(strm->adler,
s->pending_buf,
904 if (
s->gzhead->extra !=
Z_NULL) {
905 ulg beg =
s->pending;
906 uInt left = (
s->gzhead->extra_len & 0xffff) -
s->gzindex;
910 s->gzhead->extra +
s->gzindex,
copy);
911 s->pending =
s->pending_buf_size;
915 if (
s->pending != 0) {
923 s->gzhead->extra +
s->gzindex,
left);
931 if (
s->gzhead->name !=
Z_NULL) {
932 ulg beg =
s->pending;
935 if (
s->pending ==
s->pending_buf_size) {
938 if (
s->pending != 0) {
953 if (
s->gzhead->comment !=
Z_NULL) {
954 ulg beg =
s->pending;
957 if (
s->pending ==
s->pending_buf_size) {
960 if (
s->pending != 0) {
966 val =
s->gzhead->comment[
s->gzindex++];
974 if (
s->gzhead->hcrc) {
975 if (
s->pending + 2 >
s->pending_buf_size) {
977 if (
s->pending != 0) {
990 if (
s->pending != 0) {
999 if (strm->avail_in != 0 ||
s->lookahead != 0 ||
1012 if (strm->avail_out == 0) {
1034 if (
s->lookahead == 0) {
1036 s->block_start = 0
L;
1042 if (strm->avail_out == 0) {
1074 if (
s->wrap > 0)
s->wrap = -
s->wrap;
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
void putShortMSB(deflate_state *s, uInt b)
void ZLIB_INTERNAL _tr_align(deflate_state *s)
const config configuration_table[10]
int deflateStateCheck(z_streamp strm)
block_state deflate_rle(deflate_state *s, int flush)
void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
block_state deflate_stored(deflate_state *s, int flush)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
#define crc32(crc, buf, len)
void flush_pending(z_streamp strm)
block_state deflate_huff(deflate_state *s, int flush)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
#define ERR_RETURN(strm, err)