Lines Matching +full:zlib +full:- +full:wrapper
4 * Use of this source code is governed by a BSD-style license that can be
16 // The difference in bytes between a zlib header and a gzip header.
20 // zlib header when calling deflateInit2() and inflateInit2().
23 // This describes the amount of memory zlib uses to compress data. It can go
25 // http://www.zlib.net/manual.html (search for memLevel).
29 // internal Zlib constants (e.g. window size, etc) plus the wrapper
36 // 4 bytes of |input| in LE. See https://tools.ietf.org/html/rfc1952#page-5
42 memcpy(&size, &compressed_data[length - sizeof(size)], sizeof(size)); in GetGzipUncompressedSize()
50 // The number of window bits determines the type of wrapper to use - see
51 // https://cs.chromium.org/chromium/src/third_party/zlib/zlib.h?l=566
53 if (type == ZLIB) // zlib DEFLATE stream wrapper in ZlibStreamWrapperType()
55 if (type == GZIP) // gzip DEFLATE stream wrapper in ZlibStreamWrapperType()
57 if (type == ZRAW) // no wrapper, use raw DEFLATE in ZlibStreamWrapperType()
58 return -MAX_WBITS; in ZlibStreamWrapperType()
72 // This code is taken almost verbatim from third_party/zlib/compress.c. The only
74 // be set. > 16 causes a gzip header to be emitted rather than a zlib header,
77 // Compression level can be a number from 1-9, with 1 being the fastest, 9 being
113 return reinterpret_cast<MallocFreeFunctions*>(opaque)->malloc_fn(items * in CompressHelper()
117 return reinterpret_cast<MallocFreeFunctions*>(opaque)->free_fn(address); in CompressHelper()
163 // This code is taken almost verbatim from third_party/zlib/uncompr.c. The only
165 // be set. > 16 causes a gzip header to be emitted rather than a zlib header,