PyDocs

Nav

Networking and Interprocess Communication

BufferedProtocol.get_buffer

asyncio

method of BufferedProtocol (source) not WASI
  • BufferedProtocol.get_buffer(sizehint)
Called to allocate a new receive buffer.

*sizehint* is a recommended minimal size for the returned
buffer.  When set to -1, the buffer size can be arbitrary.

Must return an object that implements the
:ref:`buffer protocol <bufferobjects>`.
It is an error to return a zero-sized buffer.
0 Examples
No examples for asyncio/BufferedProtocol.get_buffer.
See Also
No see-alsos for asyncio/BufferedProtocol.get_buffer
0 Notes
No notes for BufferedProtocol.get_buffer