| 664 | } |
| 665 | |
| 666 | bool zlib_stream::unzip_update(const char* in, int len, string* out, |
| 667 | zlib_flush_t flag /* = zlib_flush_off */) |
| 668 | { |
| 669 | #ifdef HAS_ZLIB |
| 670 | # if defined(ACL_CPP_DLL) || defined(HAS_ZLIB_DLL) |
| 671 | if (__inflate == NULL) { |
| 672 | logger_warn("__inflate null, zlib maybe not loaded yet"); |
| 673 | return false; |
| 674 | } |
| 675 | # endif |
| 676 | #endif |
| 677 | return update(__inflate, flag, in, len, out); |
| 678 | } |
| 679 | |
| 680 | bool zlib_stream::unzip_finish(string* out) |
| 681 | { |