Lines Matching refs:buffer_callback
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
329 The *buffer_callback* argument was added.
421 that the *buffer_callback* argument was None when a :class:`Pickler`
427 given in order to the *buffer_callback* of a Pickler object.
964 On the sending side, it needs to pass a *buffer_callback* argument to
967 the object graph. Buffers accumulated by the *buffer_callback* will not
973 which is an iterable of the buffers which were passed to *buffer_callback*.
975 to *buffer_callback*. Those buffers will provide the data expected by the
1024 But if we pass a *buffer_callback* and then give back the accumulated
1029 data = pickle.dumps(b, protocol=5, buffer_callback=buffers.append)