Searched refs:buffer_callback (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Modules/clinic/ |
D | _pickle.c.h | 103 PyObject *buffer_callback); 118 PyObject *buffer_callback = Py_None; in _pickle_Pickler___init__() local 143 buffer_callback = fastargs[3]; in _pickle_Pickler___init__() 145 …_pickle_Pickler___init___impl((PicklerObject *)self, file, protocol, fix_imports, buffer_callback); in _pickle_Pickler___init__() 494 PyObject *buffer_callback); 508 PyObject *buffer_callback = Py_None; in _pickle_dump() local 538 buffer_callback = args[4]; in _pickle_dump() 540 return_value = _pickle_dump_impl(module, obj, file, protocol, fix_imports, buffer_callback); in _pickle_dump() 575 int fix_imports, PyObject *buffer_callback); 588 PyObject *buffer_callback = Py_None; in _pickle_dumps() local [all …]
|
/third_party/python/Lib/test/ |
D | pickletester.py | 2890 def buffer_callback(obj): function 2893 buffer_callback=buffer_callback) 2912 buffer_callback=[].append) 2915 buffer_callback = lambda pb: buffers.append(pb.raw()) function 2917 buffer_callback=buffer_callback) 2952 buffer_callback = buffers.append 2953 data = self.dumps(obj, proto, buffer_callback=buffer_callback) 2968 def buffer_callback(buffers): function 2972 self.dumps(pb, 5, buffer_callback=buffer_callback) 2977 data = self.dumps(pb, proto, buffer_callback=[].append) [all …]
|
/third_party/python/Doc/library/ |
D | pickle.rst | 216 .. function:: dump(obj, file, protocol=None, *, fix_imports=True, buffer_callback=None) 222 Arguments *file*, *protocol*, *fix_imports* and *buffer_callback* have 226 The *buffer_callback* argument was added. 228 .. function:: dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None) 233 Arguments *protocol*, *fix_imports* and *buffer_callback* have the same 237 The *buffer_callback* argument was added. 299 .. class:: Pickler(file, protocol=None, *, fix_imports=True, buffer_callback=None) 317 If *buffer_callback* is None (the default), buffer views are 320 If *buffer_callback* is not None, then it can be called any number 325 It is an error if *buffer_callback* is not None and *protocol* is [all …]
|
/third_party/python/Lib/ |
D | pickle.py | 410 buffer_callback=None): argument 450 if buffer_callback is not None and protocol < 5: 452 self._buffer_callback = buffer_callback 1750 def _dump(obj, file, protocol=None, *, fix_imports=True, buffer_callback=None): argument 1752 buffer_callback=buffer_callback).dump(obj) 1754 def _dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None): argument 1757 buffer_callback=buffer_callback).dump(obj)
|
/third_party/python/Modules/ |
D | _pickle.c | 654 PyObject *buffer_callback; /* Callback for out-of-band buffers, or NULL */ member 1116 self->buffer_callback = NULL; in _Pickler_New() 1190 _Pickler_SetBufferCallback(PicklerObject *self, PyObject *buffer_callback) in _Pickler_SetBufferCallback() argument 1192 if (buffer_callback == Py_None) { in _Pickler_SetBufferCallback() 1193 buffer_callback = NULL; in _Pickler_SetBufferCallback() 1195 if (buffer_callback != NULL && self->proto < 5) { in _Pickler_SetBufferCallback() 1201 Py_XINCREF(buffer_callback); in _Pickler_SetBufferCallback() 1202 self->buffer_callback = buffer_callback; in _Pickler_SetBufferCallback() 2535 if (self->buffer_callback != NULL) { in save_picklebuffer() 2536 PyObject *ret = PyObject_CallOneArg(self->buffer_callback, obj); in save_picklebuffer() [all …]
|