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

Method crc32_update

lib_acl_cpp/src/stdlib/zlib_stream.cpp:625–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625unsigned zlib_stream::crc32_update(unsigned n, const void* buf, size_t dlen)
626{
627#ifdef HAS_ZLIB
628# if defined(ACL_CPP_DLL) || defined(HAS_ZLIB_DLL)
629 if (__crc32 == NULL) {
630 logger_warn("__crc32 null, zlib maybe not loaded yet");
631 return 0;
632 }
633# endif
634#endif
635 return (unsigned) __crc32(n, (const Bytef*) buf, (unsigned) dlen);
636}
637
638bool zlib_stream::unzip_begin(bool have_zlib_header /* = true */,
639 int wsize /* = 15 */)

Callers 2

write_gzipMethod · 0.80
write_headMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected