Lines Matching refs:buffer_callback
653 PyObject *buffer_callback; /* Callback for out-of-band buffers, or NULL */
1115 self->buffer_callback = NULL;
1189 _Pickler_SetBufferCallback(PicklerObject *self, PyObject *buffer_callback)
1191 if (buffer_callback == Py_None) {
1192 buffer_callback = NULL;
1194 if (buffer_callback != NULL && self->proto < 5) {
1196 "buffer_callback needs protocol >= 5");
1200 Py_XINCREF(buffer_callback);
1201 self->buffer_callback = buffer_callback;
2539 if (self->buffer_callback != NULL) {
2540 PyObject *ret = PyObject_CallOneArg(self->buffer_callback, obj);
4644 Py_XDECREF(self->buffer_callback);
4659 Py_VISIT(self->buffer_callback);
4672 Py_CLEAR(self->buffer_callback);
4690 buffer_callback: object = None
4712 If *buffer_callback* is None (the default), buffer views are
4715 If *buffer_callback* is not None, then it can be called any number
4720 It is an error if *buffer_callback* is not None and *protocol*
4728 PyObject *buffer_callback)
4744 if (_Pickler_SetBufferCallback(self, buffer_callback) < 0)
7691 buffer_callback: object = None
7716 If *buffer_callback* is None (the default), buffer views are serialized
7718 *buffer_callback* is not None and *protocol* is None or smaller than 5.
7725 PyObject *buffer_callback)
7739 if (_Pickler_SetBufferCallback(pickler, buffer_callback) < 0)
7764 buffer_callback: object = None
7781 If *buffer_callback* is None (the default), buffer views are serialized
7783 *buffer_callback* is not None and *protocol* is None or smaller than 5.
7789 int fix_imports, PyObject *buffer_callback)
7801 if (_Pickler_SetBufferCallback(pickler, buffer_callback) < 0)