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

Method zlib_uncompress

lib_acl_cpp/src/stdlib/zlib_stream.cpp:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool zlib_stream::zlib_uncompress(const char* in, int len, string* out,
306 bool have_zlib_header /* = true */, int wsize /* = 15 */)
307{
308 if (!unzip_begin(have_zlib_header, wsize)) {
309 unzip_reset();
310 return false;
311 }
312
313 if (!unzip_update(in, len, out, zlib_flush_sync)) {
314 unzip_reset();
315 return false;
316 }
317
318 return unzip_finish(out);
319}
320
321#define BUF_MIN 4000
322

Callers 1

test_compressFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_compressFunction · 0.64