MCPcopy Create free account
hub / github.com/acl-dev/acl / unzip_finish

Method unzip_finish

lib_acl_cpp/src/stdlib/zlib_stream.cpp:680–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680bool zlib_stream::unzip_finish(string* out)
681{
682 if (zlib_flags_ & zlib_flags_unzip_end) {
683 return true;
684 }
685
686 zlib_flags_ &= ~zlib_flags_unzip_begin;
687 zlib_flags_ |= zlib_flags_unzip_end;
688
689#ifdef HAS_ZLIB
690# if defined(ACL_CPP_DLL) || defined(HAS_ZLIB_DLL)
691 if (__inflate == NULL || __inflateEnd == NULL) {
692 logger_warn("zlib maybe not loaded yet");
693 return false;
694 }
695# endif
696#endif
697 bool ret = flush_out(__inflate, zlib_flush_finish, out);
698 //(void) __inflateReset(zstream_);
699 __inflateEnd(zstream_);
700 return ret;
701}
702
703bool zlib_stream::unzip_reset()
704{

Callers 4

test_zip_streamFunction · 0.80
test_unzip_fileFunction · 0.80
read_response_bodyMethod · 0.80
res_unzip_finishMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_zip_streamFunction · 0.64
test_unzip_fileFunction · 0.64