Lines Matching defs:zdict
213 PyObject *zdict;
262 self->zdict = NULL;
548 zdict: Py_buffer = None
557 int memLevel, int strategy, Py_buffer *zdict)
561 if (zdict->buf != NULL && (size_t)zdict->len > UINT_MAX) {
563 "zdict length does not fit in an unsigned int");
579 if (zdict->buf == NULL) {
583 zdict->buf, (unsigned int)zdict->len);
617 if (PyObject_GetBuffer(self->zdict, &zdict_buf, PyBUF_SIMPLE) == -1) {
622 "zdict length does not fit in an unsigned int");
631 zlib_error(state, self->zst, err, "while setting zdict");
642 zdict: object(c_default="NULL") = b''
650 zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict)
655 if (zdict != NULL && !PyObject_CheckBuffer(zdict)) {
657 "zdict argument must support the buffer protocol");
669 if (zdict != NULL) {
670 Py_INCREF(zdict);
671 self->zdict = zdict;
677 if (self->zdict != NULL && wbits < 0) {
715 Py_XDECREF(self->zdict);
925 if (err == Z_NEED_DICT && self->zdict != NULL) {
1100 Py_XINCREF(self->zdict);
1101 Py_XSETREF(retval->zdict, self->zdict);
1188 Py_XINCREF(self->zdict);
1189 Py_XSETREF(retval->zdict, self->zdict);
1309 if (err == Z_NEED_DICT && self->zdict != NULL) {
1509 "decompressobj([wbits[, zdict]]) -- Return a decompressor object.\n"