PyDocs

Nav

Binary Data Services

readbuffer_encode

codecs

function
  • readbuffer_encode(buffer, errors=None, /)
Return a tuple containing the raw bytes of buffer, a buffer-compatible object or str (encoded to UTF-8 before processing), and their length in bytes.
1 Example
>>> codecs.readbuffer_encode(b"Zito")
(b'Zito', 4)
from the Python docs
See Also
No see-alsos for codecs/readbuffer_encode
0 Notes
No notes for readbuffer_encode