Home
last modified time | relevance | path

Searched refs:wbits (Results 1 – 25 of 32) sorted by relevance

12

/external/python/cpython3/Modules/clinic/
Dzlibmodule.c.h85 zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
97 int wbits = MAX_WBITS; in zlib_decompress() local
120 wbits = _PyLong_AsInt(args[1]); in zlib_decompress()
121 if (wbits == -1 && PyErr_Occurred()) { in zlib_decompress()
132 return_value = zlib_decompress_impl(module, &data, wbits, bufsize); in zlib_decompress()
177 zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
190 int wbits = MAX_WBITS; in zlib_compressobj() local
236 wbits = _PyLong_AsInt(args[2]); in zlib_compressobj()
237 if (wbits == -1 && PyErr_Occurred()) { in zlib_compressobj()
280 return_value = zlib_compressobj_impl(module, level, method, wbits, memLevel, strategy, &zdict); in zlib_compressobj()
[all …]
/external/python/cpython3/Lib/test/
Dtest_zlib.py173 wbits=zlib.MAX_WBITS,
250 wbits = -12
255 wbits=wbits,
259 do = zlib.decompressobj(wbits=wbits, zdict=b"")
272 wbits = -12
275 co = zlib.compressobj(level, method, wbits, memLevel, strategy)
278 dco = zlib.decompressobj(wbits)
601 co = zlib.compressobj(wbits=-zlib.MAX_WBITS, zdict=zdict)
603 dco = zlib.decompressobj(wbits=-zlib.MAX_WBITS, zdict=zdict)
782 co = zlib.compressobj(level=1, wbits=15)
[all …]
/external/python/cpython3/Doc/library/
Dzlib.rst64 .. function:: compressobj(level=-1, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strat…
79 The *wbits* argument controls the size of the history buffer (or the
89 * −9 to −15: Uses the absolute value of *wbits* as the
135 .. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
138 uncompressed data. The *wbits* parameter depends on
143 .. _decompress-wbits:
145 The *wbits* parameter controls the size of the history buffer
156 * −8 to −15: Uses the absolute value of *wbits* as the window size
169 value may result in an :exc:`error` exception. The default *wbits* value
179 *wbits* and *bufsize* can be used as keyword arguments.
[all …]
/external/python/cpython2/Doc/library/
Dzlib.rst71 .. function:: compressobj([level[, method[, wbits[, memlevel[, strategy]]]]])
84 The *wbits* argument controls the size of the history buffer (or the
94 * −9 to −15: Uses the absolute value of *wbits* as the
144 .. function:: decompress(string[, wbits[, bufsize]])
147 uncompressed data. The *wbits* parameter depends on
152 .. _decompress-wbits:
154 The *wbits* parameter controls the size of the history buffer
165 * −8 to −15: Uses the absolute value of *wbits* as the window size
178 value may result in an :exc:`error` exception. The default *wbits* value
188 .. function:: decompressobj([wbits])
[all …]
/external/python/cpython3/Python/
Dast_opt.c130 size_t wbits = _PyLong_NumBits(w); in safe_multiply() local
131 if (vbits == (size_t)-1 || wbits == (size_t)-1) { in safe_multiply()
134 if (vbits + wbits > MAX_INT_SIZE) { in safe_multiply()
176 size_t wbits = PyLong_AsSize_t(w); in safe_power() local
177 if (vbits == (size_t)-1 || wbits == (size_t)-1) { in safe_power()
180 if (vbits > MAX_INT_SIZE / wbits) { in safe_power()
193 size_t wbits = PyLong_AsSize_t(w); in safe_lshift() local
194 if (vbits == (size_t)-1 || wbits == (size_t)-1) { in safe_lshift()
197 if (wbits > MAX_INT_SIZE || vbits > MAX_INT_SIZE - wbits) { in safe_lshift()
/external/rust/crates/libz-sys/src/zlib-ng/
Dinflate.c118 if (state->window != NULL && state->wbits != (unsigned)windowBits) { in PREFIX()
125 state->wbits = (unsigned)windowBits; in PREFIX()
206 unsigned wsize = 1U << state->wbits; in inflate_ensure_window()
215 state->wsize = 1U << state->wbits; in inflate_ensure_window()
409 if (state->wbits == 0) in PREFIX()
410 state->wbits = 15; in PREFIX()
435 if (state->wbits == 0) in PREFIX()
436 state->wbits = len; in PREFIX()
437 if (len > 15 || len > state->wbits) { in PREFIX()
1279 window = (unsigned char *) ZALLOC_WINDOW(source, 1U << state->wbits, sizeof(unsigned char)); in PREFIX()
[all …]
Dinflate.h99 unsigned wbits; /* log base 2 of requested window size */ member
Dinfback.c49 state->wbits = (unsigned int)windowBits; in PREFIX()
/external/freetype/src/gzip/
Dinflate.c47 uInt wbits; /* log2(window size) (8..15, defaults to 15) */ member
121 z->state->wbits = (uInt)w; in inflateInit2_()
169 if ((z->state->sub.method >> 4) + 8 > z->state->wbits) in inflate()
/external/angle/third_party/zlib/contrib/optimizations/
Dinflate.c185 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
192 state->wbits = (unsigned)windowBits;
410 unsigned wsize = 1U << state->wbits;
428 state->wsize = 1U << state->wbits;
677 if (state->wbits == 0)
678 state->wbits = 15;
704 if (state->wbits == 0)
705 state->wbits = len;
706 if (len > 15 || len > state->wbits) {
1504 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
/external/zlib/
Dinflate.c184 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
191 state->wbits = (unsigned)windowBits;
410 ZALLOC(strm, 1U << state->wbits,
417 state->wsize = 1U << state->wbits;
666 if (state->wbits == 0)
667 state->wbits = 15;
693 if (state->wbits == 0)
694 state->wbits = len;
695 if (len > 15 || len > state->wbits) {
1484 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
Dinflate.h95 unsigned wbits; /* log base 2 of requested window size */ member
/external/zlib/contrib/optimizations/
Dinflate.c185 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
192 state->wbits = (unsigned)windowBits;
410 unsigned wsize = 1U << state->wbits;
428 state->wsize = 1U << state->wbits;
677 if (state->wbits == 0)
678 state->wbits = 15;
704 if (state->wbits == 0)
705 state->wbits = len;
706 if (len > 15 || len > state->wbits) {
1504 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
/external/angle/third_party/zlib/
Dinflate.c184 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
191 state->wbits = (unsigned)windowBits;
410 ZALLOC(strm, 1U << state->wbits,
417 state->wsize = 1U << state->wbits;
666 if (state->wbits == 0)
667 state->wbits = 15;
693 if (state->wbits == 0)
694 state->wbits = len;
695 if (len > 15 || len > state->wbits) {
1484 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
Dinflate.h95 unsigned wbits; /* log base 2 of requested window size */ member
/external/rust/crates/libz-sys/src/zlib/
Dinflate.c184 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
191 state->wbits = (unsigned)windowBits;
409 ZALLOC(strm, 1U << state->wbits,
416 state->wsize = 1U << state->wbits;
665 if (state->wbits == 0)
666 state->wbits = 15;
692 if (state->wbits == 0)
693 state->wbits = len;
694 if (len > 15 || len > state->wbits) {
1482 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
Dinflate.h95 unsigned wbits; /* log base 2 of requested window size */ member
/external/python/cpython2/Modules/zlib/
Dinflate.c184 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
191 state->wbits = (unsigned)windowBits;
409 ZALLOC(strm, 1U << state->wbits,
416 state->wsize = 1U << state->wbits;
665 if (state->wbits == 0)
666 state->wbits = 15;
692 if (state->wbits == 0)
693 state->wbits = len;
694 if (len > 15 || len > state->wbits) {
1482 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
[all …]
Dinflate.h95 unsigned wbits; /* log base 2 of requested window size */ member
/external/libwebsockets/win32port/zlib/
Dinflate.c157 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
164 state->wbits = (unsigned)windowBits;
370 ZALLOC(strm, 1U << state->wbits,
377 state->wsize = 1U << state->wbits;
657 if (state->wbits == 0)
658 state->wbits = len;
659 else if (len > state->wbits) {
1428 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
1445 wsize = 1U << state->wbits;
Dinflate.h92 unsigned wbits; /* log base 2 of requested window size */ member
/external/python/cpython3/Modules/
Dzlibmodule.c336 zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits, in zlib_decompress_impl() argument
361 err = inflateInit2(&zst, wbits); in zlib_decompress_impl()
464 zlib_compressobj_impl(PyObject *module, int level, int method, int wbits, in zlib_compressobj_impl() argument
485 err = deflateInit2(&self->zst, level, method, wbits, memLevel, strategy); in zlib_compressobj_impl()
561 zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict) in zlib_decompressobj_impl() argument
585 err = inflateInit2(&self->zst, wbits); in zlib_decompressobj_impl()
589 if (self->zdict != NULL && wbits < 0) { in zlib_decompressobj_impl()
/external/python/cpython2/Modules/
Dzlibmodule.c385 int wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=0, err; in PyZlib_compressobj() local
387 if (!PyArg_ParseTuple(args, "|iiiii:compressobj", &level, &method, &wbits, in PyZlib_compressobj()
398 err = deflateInit2(&self->zst, level, method, wbits, memLevel, strategy); in PyZlib_compressobj()
422 int wbits=DEF_WBITS, err; in PyZlib_decompressobj() local
424 if (!PyArg_ParseTuple(args, "|i:decompressobj", &wbits)) in PyZlib_decompressobj()
434 err = inflateInit2(&self->zst, wbits); in PyZlib_decompressobj()
/external/rust/crates/libz-sys/src/zlib-ng/arch/s390/
Ddfltcc_inflate.c28 if (state->wbits != HB_BITS) in dfltcc_can_inflate()
/external/python/cpython2/Lib/test/
Dtest_zlib.py231 wbits = -12
234 co = zlib.compressobj(level, method, wbits, memlevel, strategy)
237 dco = zlib.decompressobj(wbits)

12