Lines Matching refs:buffer_callback
654 PyObject *buffer_callback; /* Callback for out-of-band buffers, or NULL */
1116 self->buffer_callback = NULL;
1190 _Pickler_SetBufferCallback(PicklerObject *self, PyObject *buffer_callback)
1192 if (buffer_callback == Py_None) {
1193 buffer_callback = NULL;
1195 if (buffer_callback != NULL && self->proto < 5) {
1197 "buffer_callback needs protocol >= 5");
1201 Py_XINCREF(buffer_callback);
1202 self->buffer_callback = buffer_callback;
2535 if (self->buffer_callback != NULL) {
2536 PyObject *ret = PyObject_CallOneArg(self->buffer_callback, obj);
4640 Py_XDECREF(self->buffer_callback);
4655 Py_VISIT(self->buffer_callback);
4668 Py_CLEAR(self->buffer_callback);
4686 buffer_callback: object = None
4708 If *buffer_callback* is None (the default), buffer views are
4711 If *buffer_callback* is not None, then it can be called any number
4716 It is an error if *buffer_callback* is not None and *protocol*
4724 PyObject *buffer_callback)
4740 if (_Pickler_SetBufferCallback(self, buffer_callback) < 0)
7644 buffer_callback: object = None
7669 If *buffer_callback* is None (the default), buffer views are serialized
7671 *buffer_callback* is not None and *protocol* is None or smaller than 5.
7678 PyObject *buffer_callback)
7692 if (_Pickler_SetBufferCallback(pickler, buffer_callback) < 0)
7717 buffer_callback: object = None
7734 If *buffer_callback* is None (the default), buffer views are serialized
7736 *buffer_callback* is not None and *protocol* is None or smaller than 5.
7742 int fix_imports, PyObject *buffer_callback)
7754 if (_Pickler_SetBufferCallback(pickler, buffer_callback) < 0)