PyDocs

Nav

Generic Operating System Services

BytesIO.getbuffer

io

method of BytesIO · Added in 3.2
  • BytesIO.getbuffer()
Get a read-write view over the contents of the BytesIO object.
1 Example
>>> b = io.BytesIO(b"abcdef")
>>> view = b.getbuffer()
>>> view[2:4] = b"56"
>>> b.getvalue()
b'ab56ef'
from the Python docs
See Also
No see-alsos for io/BytesIO.getbuffer
0 Notes
No notes for BytesIO.getbuffer